Jump to content
  • Who's Online   0 Members, 0 Anonymous, 9 Guests (See full list)

    • There are no registered users currently online
  • 0

Scripting


Ahoffner

Question

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.

 

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

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...