Re: Show Package Contents
Re: Show Package Contents
- Subject: Re: Show Package Contents
- From: KOENIG Yvan <email@hidden>
- Date: Tue, 21 Oct 2008 17:45:41 +0200
Le 21 oct. 2008 à 17:24, Philip Aker a écrit :
On Oct 21, 2008, at 8:08 AM, KOENIG Yvan wrote:
How may we open the window of a package (Show package Contents)
from AppleScript ?
This was discussed some time ago. I believe it's not possible:
set p to (path to desktop as text) & "some.app:Contents:"
tell application "Finder"
open p
set c to container of item p
open c
end tell
OMM, the 'open c' command actually launches the application. I have
not tried this with shell command 'open'.
Thanks
I missed the old thread.
As the package was an rtfd document, I found a workaround:
set p2d to path to desktop as text
set paquet to p2d & "azaz.rtfd:"
tell application "Finder"
set paquet to paquet as alias
set oldName to name of paquet
set dossier to (container of paquet) as text
set ext to name extension of paquet
set newName to text 1 thru -(2 + (count of ext)) of oldName
set name of paquet to newName
open folder (dossier & newName)
set name of alias (dossier & newName) to oldName
end tell
Yvan KOENIG (from FRANCE mardi 21 octobre 2008 17:40:24)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden