Jump to content

Roxio Community

Scripting


  • Please log in to reply
No replies to this topic

#1 Ahoffner

Ahoffner

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 13 August 2007 - 08:20 PM

I was trying to mess with applescript to automate dvd burning via Popcorn 2, i patched together a quick trial for burning a video_ts folder to a disk, but I get errors.

Looking closer at the applescript Dictionary entry for Popcorn, actions needed to do this (like 'add to') are listed under "Toast Suite". Does this mean they are simply inherited from Toast or that they only work in Toast?

I saw in the process of searching Google for help that one of the updates to this software lists "Can now correctly pass a VIDEO_TS folder directly to Popcorn via AppleScript" as a new feature, suggesting this should be somehow possible. Does anyone know how?

Thanks in advance.

CODE
set VTSpath to (choose folder with prompt "Choose a VIDEO_TS folder:")

tell application "Finder"
    set fls to entire contents of VTSpath as alias list -- file list
    set fn to name of container of VTSpath -- name of parent folder
end tell

tell application "Popcorn"
    set myDisk to make new Video disc with properties {disc format:DVD, name:fn}
    add to myDisk items fls
end tell





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users