Re: Finder Scripting: Looking inside packages
Re: Finder Scripting: Looking inside packages
- Subject: Re: Finder Scripting: Looking inside packages
- From: Stephen Jonke <email@hidden>
- Date: Tue, 29 Jul 2003 10:23:55 -0400
I don't think you can get the .app itself as a folder because the
Finder doesn't treat it as such (showing package contents opens a new
window that isn't directly connected to where you were), but you can
get the "Contents" as a folder. I.e.:
tell app "Finder"
open folder "Racer X:Applications:Safari.app:Contents:"
end tell
Steve
On Tuesday, July 29, 2003, at 09:57 AM, Sascha Kratky wrote:
Hi,
the AppleScript interface of the OS X Finder seems to treat bundled
applications as "application files".
E.g. the AppleScript
tell application "Finder"
get class of item "Mac OS X:Applications:Safari.app:"
end tell
returns "application file"
There seems to be no way to make the Finder treat an application
bundle as a regular folder under AppleScript. This is preferable if
you want to use AppleScript to automatically build the folder
hierarchy of an application bundle or to manipulate the files in the
application bundle. When trying to access the contents of the
application bundle however the Finder returns the error "Can't make or
move that element into that container". Has anyone succeeded in doing
this?
Thanks,
Sascha
_______________________________________________
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.
________________________________________________________________________
Stephen J. Jonke "Not the Craw, the Craw!" - The Claw
NASA/Goddard Space Flight Center E-mail: email@hidden
Flight Software Branch/Code 582 Phone : (301)286-4196
Greenbelt, MD 20771 Fax : (301)286-1768
________________________________________________________________________
_______________________________________________
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.