Re: Colonic irrigation (OS X)
Re: Colonic irrigation (OS X)
- Subject: Re: Colonic irrigation (OS X)
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 11 Feb 2004 17:46:28 -0800
At 11:05p +0000 02/11/2004, Mr Tea didst inscribe upon an electronic papyrus:
Hi, folks.
Either I'm confused about colons, or AppleScript is, or we both are....
tell application "Finder"
activate
open item ((path to desktop folder as string) & "F1:F2:")
end tell
That's straightforward enough. If there's a folder on my desktop called
'F1', containing a folder called 'F2', the above script will open it.
However, if I replace the folder 'F2' with a file of the same name, the
script will open that instead, without a whisper of complaint.
Similarly, if I leave the final colon off the file/folder path, AS will
indiscriminately open F2 regardless of whether it's a file or a folder.
That's because you're using 'item'.
If you had told it to open 'folder' then it would have wanted the colon.
I think... maybe... not sure...
-boo
who hasn't used 'item' since the days of desk accessory suitcase files
_______________________________________________
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.