Someone asked me to re-post this snippet of code, which is designed to allow you to put your Documents folder into another partition or disk, and to put an alias pointing to it in place of the Documents folder on your startup disk. This code will find the documents folder either on the Startup Disk or, if an alias is there, it will resolve the alias and follow it to the actual location. This particular code locates the Entourage Script Menu Items folder within Documents:
set MyDisk to (path to startup disk) as string
set x to info for (MyDisk & "Documents:")
if alias of x is true then
tell application "Finder" to set oi to original item of alias file (MyDisk & "Documents:")
set MUD to ((oi as string) & "Microsoft User Data:")
else
set MUD to (MyDisk & "Documents:Microsoft User Data:")
end if
set scrptFldr to MUD & "Entourage Script Menu Items:"
Allen,
Excellent script, but I think you've been caught by the Jon's/Akua coercion again. For people who don't have either osax (and also for those who do!), the last line should really be:
set scrptFldr to alias (MUD & "Entourage Script Menu Items:")
Also a reminder to everyone: if you're using OS 9.1 you need to have he Security modules in Extensions enabled as God and Apple intended for the above script – and most other scripts – to work.
--
Paul Berkowitz
