Re: How to open Package folder?
Re: How to open Package folder?
- Subject: Re: How to open Package folder?
- From: Rob Jorgensen <email@hidden>
- Date: Fri, 5 Sep 2003 05:23:51 -0400
At 2:09 AM -0700 9/5/03, Walter Ian Kaye wrote:
At 09:00p -0400 09/03/2003, Rob Jorgensen didst inscribe upon an
electronic papyrus:
At 4:00 PM -0700 9/3/03, Sung Kim wrote:
Instead of launching an application, how can we ask the Finder to open the
package folder (via AppleScript, that is)? Thank you.
Something like this might work (tested on OS X). It opens the
contents folder.
tell application "Finder"
open container of container of application file id "POrg" -- Palm Desktop
end tell
Or simply this:
tell app "Finder" to open folder "Contents" of application file id "POrg"
That crashes my Finder 100% of the time, as does this:
tell application "Finder"
try
get folder "Contents" of application file id "POrg"
on error e
display dialog e
end try
end tell
There is no error returned since Finder is in no condition to return
anything, and the script continues to run after Finder crashes.
-- Rob
_______________________________________________
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.