Re: Error in the Finder
Re: Error in the Finder
- Subject: Re: Error in the Finder
- From: Mr Tea <email@hidden>
- Date: Wed, 11 Feb 2004 22:12:54 +0000
On 11 Feb 2004, at 8.29 pm, Syllas R. wrote:
The following script works fine on a mac OS 9.x....
--- SCRIPT ----
OpenFolder("DossierDemo:flexo")
on OpenFolder(FolderName)
tell application "Finder"
activate
try
open (folder FolderName)
on error
return false
end try
end tell
return true
end OpenFolder
----- END ------
Hi, Syllas.
It sounds like your "Dossier Demo" folder was on the OS 9 desktop, and
the desktop is a very different beast in OS X, where your own personal
desktop is simply a folder in your user directory. To work with items
in that location, you would need to change the 'open' line in your
script to something like: 'open folder (((path to desktop folder) as
string) & FolderName)'.
Normally, a folder path would need a colon at the end of it (to show
that it's a folder, not a file) but that doesn't seem to apply here.
I'm not sure why....
Regards,
Nick
pp Mr Tea
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.