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

alias list error


  • Subject: alias list error
  • From: Jim Brandt <email@hidden>
  • Date: Fri, 30 Mar 2007 17:56:11 -0500

Can someone explain how I can fix this statement so that it works every time.
Right now, it works if there are two or files in the folder, but fails if only a
single file exists.

Here is the line:

set theList to (every item of folder hold_folder whose kind is not "folder") as alias list

and here is the results from the Event Log:

tell application "Finder"
get every item of folder "HD1:Infomac: Hold:" whose kind ≠ "folder"
{alias "HD1:InfoMac: Hold:auv4n0140.txt"}
"Can't make alias \"HD1:InfoMac: Hold:auv4n0140.txt\" into type «class alst»."
 _______________________________________________
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 error
      • From: Michelle Steiner <email@hidden>
    • Re: alias list error
      • From: kai <email@hidden>
    • Re: alias list error
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: How does one save a vcard?
  • Next by Date: Re: alias list error
  • Previous by thread: Re: Help required with Shell Script please.
  • Next by thread: Re: alias list error
  • Index(es):
    • Date
    • Thread