• 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: Coercing document list to alias list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercing document list to alias list


  • Subject: Re: Coercing document list to alias list
  • From: Axel Luttgens <email@hidden>
  • Date: Fri, 08 Dec 2006 11:07:18 +0100

On 8/12/06 10:38, Jay Louvion wrote:
Coercing document list to alias list
Hi all,

Am I too naive ? I genuinely thought I could do the following and get an alias list:

tell application "Finder"
    set TheFolder to choose folder
   set TheContent to (every file of TheFolder)
    set TheContentAsAlias to TheContent as alias list
end
tell
Unless I'm wrong, in Finder's dictionary, "as alias list" is not a coercion operator; its use is to ask the Finder to return a list of aliases instead of a list of Finder references as the result of a command.

So, you need to write something like this:

    set TheContentAsAlias to every file of TheFolder as alias list

HTH,
Axel
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Coercing document list to alias list
      • From: KOENIG Yvan <email@hidden>
References: 
 >Coercing document list to alias list (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: Coercing document list to alias list
  • Next by Date: Re: Problems with grouped boxes in Quark
  • Previous by thread: Re: Coercing document list to alias list
  • Next by thread: Re: Coercing document list to alias list
  • Index(es):
    • Date
    • Thread