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

sort error


  • Subject: sort error
  • From: email@hidden
  • Date: Thu, 17 Jun 2004 07:35:41 -0600

When I used "sort" in os 9, it worked, why doesn't it work in os X--and
more importantly, how do I fix it?
I'm guessing it doesn't work on lists of alias'. If so, how do I change
the dropped files to strings only?

on open theList
fileinput(theList)
end open
on fileinput(theList)
tell application "Finder"
set theList to (sort theList by name)
repeat with thisimage in theList
--do something with the file from theList
end repeat
end tell
end fileinput

--error from script debugger:
(* Finder got an error: {alias "C:Users:dstevens:Desktop:1.pdf", alias
"C:Users:dstevens:Desktop:3.pdf", alias
"C:Users:dstevens:Desktop:2.PDF", alias
"C:Users:dstevens:Desktop:0.pdf"} doesn't understand the sort message.
*)
--All "alias" are highlighted blue.

--
David Stevens
Carr Printing Co.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: sort error
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Can't make remote AppleEvents work
  • Next by Date: Re: Name of Active Process
  • Previous by thread: Sleep Displays via Script?
  • Next by thread: Re: sort error
  • Index(es):
    • Date
    • Thread