FORUMS: list search recent posts

FCP Apple script question

COW Forums : Apple OS X

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
jj johnson
FCP Apple script question
on Sep 29, 2016 at 11:00:25 pm

I am attempting to write a applescript that will mark the in and out of a clip from a FCP timeline, get info to copy the name, export a quicktime, change the name of the export file to the copied name, add an underscore after the name, then add a unique number (date/time or preferably the number of the files in the folder where I am putting the new export - hence the number increases with every clip.) I got all of it to work except the unique number: this is what I have tried:
set btn9 to 25
set btnC to 8
set ENTER to 76
set btnE to 14
set btnV to 9
set btnDASH to 27
set btnX to 7
set btnNEXT to 125


tell application "Final Cut Pro"
activate
tell application "System Events"
delay 0.2
key code btnNEXT #move forward
delay 0.2
key code btnNEXT #move forward
delay 0.2
key code btnX #mark clip
delay 0.2
key code btn9 using {command down} #get info
delay 0.2
key code btnC using {command down} #copy clip name
delay 0.2
key code ENTER #close info window
delay 0.3
key code btnE using {command down} #export dialogue
delay 0.3
key code btnV using {command down} #paste name
delay 0.3
tell application "Finder"
activate
set the clipboard to number of files in folder ("Users/70s/Desktop/102ORT")
delay 0.3

tell application "Final Cut Pro"
activate
tell application "System Events"
delay 0.2
keystroke "_"
delay 0.2
the clipboard
end tell
end tell
end tell
end tell
end tell

it runs fine but doesn't give me the number after the dash -

Any help?


Return to posts index

jj johnson
Re: FCP Apple script question
on Sep 30, 2016 at 12:22:54 pm

Never mind I figured it out!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]