• 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
alias list broken ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alias list broken ?


  • Subject: alias list broken ?
  • From: KOENIG Yvan <email@hidden>
  • Date: Sat, 14 Jan 2012 11:46:40 +0100

Hello
I don't remember reading something about that.

When I ran this simple script under Lion :

tell application "Finder"
set selected to (get the selection) as alias list
item 1 of selected
end tell

I assumed that the result would be an alias.

Alas, I got :

tell application "Finder"
get selection
--> {document file "aa copie 2.rtf" of folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk, document file "aa copie 3.rtf" of folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk}
end tell

Résultat :

document file "aa copie 2.rtf" of folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk of application "Finder"

which is exactly what is returned without the "as alias list coercion".

Is it a documented behavior ?

Yvan KOENIG (VALLAURIS, France) samedi 14 janvier 2012 11:41:12


 _______________________________________________
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

  • Follow-Ups:
    • Re: alias list broken ?
      • From: Emmanuel LEVY <email@hidden>
    • Re: alias list broken ?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Repeat until application is frontmost
  • Next by Date: Re: alias list broken ?
  • Previous by thread: Re: Repeat until application is frontmost
  • Next by thread: Re: alias list broken ?
  • Index(es):
    • Date
    • Thread