• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to open Package folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to open Package folder?


  • Subject: Re: How to open Package folder?
  • From: email@hidden
  • Date: Fri, 5 Sep 2003 10:29:58 +0100

>> >> 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
>>
>> Rob,
>>
>> Actually you're snippet opens up the folder containing the folder
>> containing the application!
>> But I quite like working with application ID's, so I thought I'd throw
>> in my own version based on Paul's snippet and yours.
>>
>> tell application "Finder"
>> --activate
>> set app_ to application file id "ttxt" as Unicode text -- TextEdit
>> application
>> set theContents to folder (app_ & ":Contents:MacOS:")
>> reveal theContents
>> end tell
>
> I admit that I didn't test it beyond Palm Desktop so I guess it needs
> to be adapted on an application by application basis. On my machine:
>
> tell application "Finder"
> container of container of application file id "POrg" as text
> end tell
> --> My Hard Drive:Applications:Palm:Palm Desktop:Contents:
>

Or better (slimmer!) yet...

tell application "Finder"
--activate
set app_ to application file id "ttxt" as Unicode text -- TextEdit
application
open folder (app_ & ":Contents") --as Unicode text
end tell
--
DizzyPenguin  autoMAC-it
mailto:email@hidden
visit: http://www.dizzypenguin.com/automac-it/
_______________________________________________
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.

References: 
 >Re: How to open Package folder? (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: How to open Package folder?
  • Next by Date: Re: How to open Package folder?
  • Previous by thread: Re: How to open Package folder?
  • Next by thread: Searching for multiple files
  • Index(es):
    • Date
    • Thread