• 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: Shane Stanley <email@hidden>
  • Date: Fri, 08 Dec 2006 20:57:08 +1100
  • Thread-topic: Coercing document list to alias list

On 8/12/06 8:38 PM, "Jay Louvion" <email@hidden> wrote:

> 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

"as alias list" isn't really a coercion; you have to use as part of your
initial statement:

tell application "Finder"
    set TheFolder to choose folder
    set TheContentAsAlias to (every file of TheFolder) as alias list
end tell

--
Shane Stanley <email@hidden>


 _______________________________________________
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

References: 
 >Coercing document list to alias list (From: Jay Louvion <email@hidden>)

  • Prev by Date: Coercing document list to alias list
  • Next by Date: Re: Coercing document list to alias list
  • Previous by thread: Coercing document list to alias list
  • Next by thread: Re: Coercing document list to alias list
  • Index(es):
    • Date
    • Thread