Re: Pleas help with AppleScript's text item delimiter
Re: Pleas help with AppleScript's text item delimiter
- Subject: Re: Pleas help with AppleScript's text item delimiter
- From: Walter Ian Kaye <email@hidden>
- Date: Sun, 14 Sep 2003 00:23:37 -0700
At 08:03a +0200 09/14/2003, Richard Rvnnbdck didst inscribe upon an
electronic papyrus:
set myFolder to quoted form of (POSIX path of "Macintosh
HD:Users:richardr:desktop")
set myOldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to "
"
set theFiles to (do shell script "find " & myFolder & " -name *.jpg") as
list
-- doesn't work, still returns a string so I can't do
item 1 of theFiles
set AppleScript's text item delimiters to myOldDelimiters
Here's a better way to write your script:
set myFolder to quoted form of (POSIX path of "Macintosh
HD:Users:richardr:desktop")
set theFiles to every paragraph of (do shell script "find " &
myFolder & " -name *.jpg")
We could talk about text item delimiters if you want, but it's not
the way to go for this.
-boo
_______________________________________________
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.