Re: applescript, Wirecast, and file references
Re: applescript, Wirecast, and file references
- Subject: Re: applescript, Wirecast, and file references
- From: John McClintock <email@hidden>
- Date: Wed, 11 Dec 2013 19:24:23 -0500
Dee Dee,
This worked for me:
tell application "Wirecast 4.1.4"
set myDoc to document 1
set live_layer to layer 3 of myDoc
set path_string to "/Users/jjmcclintock/Movies/pixinsight tutorials/StarAlignment_Intro_Part1.mov" --this is the POSIX path to the file
--set posix_file to POSIX path of path_string
AddShotWithMedia live_layer with posix_path path_string
end tell
It looks like your path_string isn't a complete reference; why don't you make a POSIX path to begin with? But what you have should work if the path_string is a complete reference.
John McClintock
email@hidden
614 738-5218
On Dec 11, 2013, at 6:26 PM, email@hidden wrote:
>
> Message: 2
> Date: Wed, 11 Dec 2013 18:25:58 -0500
> From: Dee Dee Sommers <email@hidden>
> To: Applescript Users List <email@hidden>
> Subject: applescript, Wirecast, and file references
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I am trying to write an applescript to use in Wirecast that will import a video shot……
>
> and then I am trying to remove that shot and the media…..
>
> I am having trouble with the file reference. I suspect it is a matter of syntax (or whatever….. I'm clearly a newb.)
> Can anyone offer some advice?
>
> Here is an excerpt of the script:
> try
>
> tell application "Wirecast"
> activate
>
> -- initialize the variables
> set myDoc to document "settings"
>
> set caption_layer to layer 1 of myDoc
> set logo_layer to layer 2 of myDoc
> set live_layer to layer 3 of myDoc
> set layer4 to layer 4 of myDoc
> set layer5 to layer 5 of myDoc
> set path_string to "/Documents/media4wirecast/CSP_201202_Humility.mov"
> set posix_file to POSIX path of path_string
>
> ------ then I play with the environment, etc.
> ---- here is where I run into trouble:
> AddShotWithMedia live_layer with posix_path posix_file <----- This gives me an error code -1728 when I run the script.
>
> Here is what the dictionary says for the statement:
> AddShotWithMedia v : Adds a new shot to the layer with media
> AddShotWithMedia layer : layer to remove shot_id from.
> with posix_path any : posix path to media to put into the shot.
>
>
> Here is a screen shot of the finder window, showing the location of the file:
>
>
> Thank you for any insight you might be willing to share!
> Dee Dee
>
_______________________________________________
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