• 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: Shane Stanley <email@hidden>
  • Date: Wed, 23 Jul 2014 09:56:12 +1000

On 23 Jul 2014, at 5:13 am, Jan E. Schotsman <email@hidden> wrote:

I can convert one file like this:

set thePath to POSIX path of item 1 of myMoviesList
tell application "JES Deinterlacer"
make new project with data {preset:"2x speed", file:POSIX path thePath}
end tell

Don't ask me why this works but it does (maybe I was just lucky when a wrote the script this way the first time).
What I need is {POSIX file thePath1 , POSIX file thePath2}

The example you say works is using a POSIX path, which is not the same thing as a POSIX file. If you need POSIX paths, try this:

tell application "System Events"
set myMoviesfolder to folder "<myFolder>" of moviesFolder
set myMoviesList to POSIX path of files of myMoviesfolder whose kind is "QuickTime Movie"
end tell
tell application "JES Deinterlacer"
make new project with data {preset:"2x speed", file:myMoviesList}
end tell

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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>
References: 
 >file list as data (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: Re: file list as data
  • 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