Re: open alias discrepancy in OS X Lion?
Re: open alias discrepancy in OS X Lion?
- Subject: Re: open alias discrepancy in OS X Lion?
- From: email@hidden
- Date: Mon, 01 Aug 2011 14:14:30 -0600
Title: Re: open alias discrepancy in OS X Lion?
Clarification…
The issue seems to be with an actual alias file. So instead of opening up a path to a file, when you attempt to open an alias file it will open to the package contents instead of the actual file itself
tell application "Finder" to open item "Some_File" of the desktop -- where "Some File" is an alias to the actual file in another location.
If the original file is an ".rtfd" file, it opens to the package contents of the file instead of the file itself. If the original file pointed to by the alias is an application like "iCal" it opens to the package contents.
In Snow Leopard this worked and would open the file iteslf. In the GM release of Lion, it opens to the package contents instead.
Todd
On Jul 28, 2011, at 3:29 PM, CYB wrote:
The following in Snow Leopard:
tell application "Finder"
set ical_app to item "iCal" in folder "Applications" of the startup disk
set ical_app to ical_app as string
open alias ical_app
end tell
-- result - opens the iCal application
In Lion:
-- result - opens Finder to the package contents of the iCal.app
Can anyone else verify this in Lion? or have any thoughts on why the difference? is this a bug or do I need to find a workaround?
Todd
Todd, why not just
Tell application “ical” to activate
Or
Tell application “iCal”
--do your stuff
End
And forget about Finder, you don’t need it at all.
Carlos Ysunza B.
|
_______________________________________________
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