• 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
POSIX and lists question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

_________________________________________________________________
Don’t 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


  • Follow-Ups:
    • Re: POSIX and lists question
      • From: kai <email@hidden>
    • Re: POSIX and lists question
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Split PDF and reduce file size
  • Next by Date: Re: POSIX and lists question
  • Previous by thread: Drilling down into an AppleScript object reference
  • Next by thread: Re: POSIX and lists question
  • Index(es):
    • Date
    • Thread