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: Luther Fuller <email@hidden>
- Date: Mon, 01 Aug 2011 15:31:42 -0500
On Aug 1, 2011, at 3:14 PM, email@hidden wrote:
> 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.
This would seem to have an easy work-around.
If 'fileAlias' is an alias to an alias file (which points to some other file), then do this ...
tell application "Finder"
open (original item of fileAlias)
(And if that has a problem, there may be a bug, here.)
_______________________________________________
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