• 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: Open Bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Bugs


  • Subject: Re: Open Bugs
  • From: Iurista GmbH <email@hidden>
  • Date: Fri, 20 Jan 2012 23:59:11 +0100

Am 20.01.2012 um 17.31 schrieb Luther Fuller:

> On Jan 19, 2012, at 1:53 PM, KOENIG Yvan wrote:
>
>> Le 19 janv. 2012 à 18:53, Luther Fuller a écrit :
>>
>>> There are some odd things happening in this script, however.
>>> The line (fileAlias as text) as alias cannot be written as two lines.
>>> If you do that, neither of the lines will error.
>>> And I haven't the slightest idea why the posix/colon path is there. It just is.
>>
>> As far as I know, the Unix path which you got is the path of the alias's parent (original) which you may see if you type cmd + I after selecting the alias's icon.
>
> Yes. The Info window of an alias file contains a posix path which is shown as "Original:". It is always there, even if the original item described by the path is missing. I would like to get this posix path, so I looked at various dictionaries for a way to do that. It just isn't there !!!!
>
> The Finder's 'original item' property errors if the original item file does not exist.
>
> System Events has no command which will return this property.
>
> Even StandardAdditions 'info for' command (which is deprecated) does not return this information.
>
> I also tried 'do shell script "mdls "&(quoted form of (posix path of ... )) ', but that info isn't there.
>
> I know the information I need for an alias file is there, but how do I get it?

try this

tell application "Finder"
	set this_item to the selection as alias
	load resource 0 type "alis" from this_item
end tell
Rudolf




 _______________________________________________
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


References: 
 >Open Bugs (From: Luther Fuller <email@hidden>)
 >Re: Open Bugs (From: Luther Fuller <email@hidden>)
 >Re: Open Bugs (From: Luther Fuller <email@hidden>)
 >Re: Open Bugs (From: KOENIG Yvan <email@hidden>)
 >Re: Open Bugs (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Open Bugs
  • Next by Date: Re: Open Bugs (addendum)
  • Previous by thread: Re: Open Bugs
  • Next by thread: Re: Open Bugs
  • Index(es):
    • Date
    • Thread