Re: file list as data
Re: file list as data
- Subject: Re: file list as data
- From: Bruce Robertson <email@hidden>
- Date: Wed, 23 Jul 2014 14:29:59 -0700
And what's the syntax for "entire contents of" in this format?
If the folder in question has folders within it?
How would this statement be modified:
set myMoviesList to path of files of myMoviesfolder
Bruce
On Jul 23, 2014, at 1:59 PM, "Jan E. Schotsman" <email@hidden> wrote:
>
> 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
_______________________________________________
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