• 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: Alias list inconsistency ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias list inconsistency ?


  • Subject: Re: Alias list inconsistency ?
  • From: Jay Louvion <email@hidden>
  • Date: Thu, 26 Jun 2008 10:45:01 +0200
  • Thread-topic: Alias list inconsistency ?

Title: Re: Alias list inconsistency ?
On 26.06.2008 9:36, "Joe" <email@hidden> spake thus:

Apologies. I'm half asleep. You probably were trying something like this.

tell application "Finder"
 set x to every file of (choose folder) as alias list
end tell
if length of x is 1 then
 set x to x as alias
end if
x

Joe

Mmh... Or maybe quite asleep ;P

When there is only one file, the script will error out on the second line.

I have found another way to do it*, but I don’t understand why my first proposition wich seems quite logical doesn’t work or even error out.

*(
set FileList to {}
tell application "Finder"
    set FolderContent to (every file of folder ClientFolder)
    repeat with oneFile in FolderContent
       set ImageFiles to ImageFiles & (oneFile as alias)
    end repeat
end
tell
)

I think my REAL question is: Is this a bug ?

Best,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

www.studiocasagrande.com

P Please consider the environment before printing this email.

 _______________________________________________
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

  • Prev by Date: Alias list inconsistency ?
  • Next by Date: Re: Alias list inconsistency ?
  • Previous by thread: Re: Alias list inconsistency ?
  • Next by thread: PhotoShop Spot Channels
  • Index(es):
    • Date
    • Thread