• 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: Pie chart importing script-success!!!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pie chart importing script-success!!!!


  • Subject: Re: Pie chart importing script-success!!!!
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Wed, 16 Oct 2002 11:53:56 -0400

> Subject: Pie chart importing script-success!!!!
> Date: Tue, 15 Oct 2002 17:00:25 -0400
> From: "Rips Ethan J" <email@hidden>

> At long last, I've gotten the OS 9.2.2 (Applescript 1.8.3) version of my
> script to work. Special thanks to Arthur Knapp,

Did I help with this???

> --Convert each Finder object (names of files in
> imageList) to alias

I am still fuzzy on just how this sort of thing is handled by the OS.

> --NEED TO SUBSTITUTE NON-AS CODE TO SORT CONTENTS OF
> IMAGEPATH FOR OS X COMPATIBILITY
> tell application "Finder"
> --sort list by name
> set imageList to sort (every file of imagePath) by name
> --then coerce each item to alias
> repeat with i in imageList
> set i's contents to i as alias
> end repeat
> --Yields list of aliases
> imageList

When I ran this on my collegues's OS X system:

set f to choose folder

set o to AppleScript's text item delimiters -- save
set AppleScript's text item delimiters to "::" -- old tids trick

tell application "Finder"

set a to ((every file of f) as string)'s text items

end tell

set AppleScript's text item delimiters to o -- restore

a --> sorted path-strings, (usually???)


(a) was always sorted, but I don't "know" that this is always the case,
because it seems to me that in various past versions of AppleScript, the
behavior of getting "every whatever" in the Finder was always changing.
Sometimes they would come back sorted, and at other times, the order seemed
almost random. Someone said that it had to do with the HFS file system,
but then why do they seem to "mostly" come back sorted?


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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: Pie chart importing script-success!!!!
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: get volume
  • Next by Date: Re: get volume
  • Previous by thread: Pie chart importing script-success!!!!
  • Next by thread: Re: Pie chart importing script-success!!!!
  • Index(es):
    • Date
    • Thread