POSIX and lists question
POSIX and lists question
- Subject: POSIX and lists question
- From: "aaron spesard" <email@hidden>
- Date: Wed, 10 Aug 2005 17:47:10 -0700
Why doesn't this work?
set theFiles to {}
set n to 1
repeat with counter from n to (count of thePaths)
-- thePaths is a bunch of PDFs dropped on the window.
set placedPDF to item n of thePaths
set PPDF to POSIX file placedPDF
set item n of theFiles to PPDF
end repeat
I get an applescript error saying: "Can't set item 1 of "" to file
"blah/blah/blah.pdf"."
but if I do :
set placedPDF to item 1 of thePaths
set PPDF to POSIX file placedPDF
Applescript sets PPDF just fine.
thanks,
Aaron
--xcode 2.1 just keeps stabbing me with a knife repeatedly.
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden