• 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: file list as data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file list as data


  • Subject: Re: file list as data
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Wed, 23 Jul 2014 22:59:31 +0200


On Jul 23, 2014, at 7:00 PM, Yvan KOENIG wrote:

set p2d to path to documents folder as text
tell application "System Events"
set myMoviesfolder to folder (p2d & "dossier sans titre:")
set myMoviesList to path of files of myMoviesfolder
end tell

set thePosixFileList to {}
repeat with movieFile in myMoviesList
set thePath to POSIX path of movieFile
set posixFile to POSIX file thePath
set end of thePosixFileList to posixFile
end repeat
thePosixFileList

You're right, this works too.
Something mysterious is going on here.
If I omit "path of" in line 4 of your code it fails.

Jan E.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: file list as data
      • From: Christopher Stone <email@hidden>
    • Re: file list as data
      • From: Bruce Robertson <email@hidden>
  • Prev by Date: Re: Informal poll
  • Next by Date: Re: file list as data
  • Previous by thread: Re: file list as data
  • Next by thread: Re: file list as data
  • Index(es):
    • Date
    • Thread