Re: GUI scripting Flash
Re: GUI scripting Flash
- Subject: Re: GUI scripting Flash
- From: julifos <email@hidden>
- Date: Sun, 12 Apr 2009 21:36:35 +0200
- Thread-topic: GUI scripting Flash
> I'm trying to script some processes inside Adobe Flash.
>
> 1. open a new flash file
> 2. import selected art to the Flash library
> 3. Set properties of imported art to movie clips
> 4. then set linkage properties to export for actionscript
I don't have the time now to ellaborate, but this is what I use to do in
order to automate Flash IDE tasks with a mix of AppleScript and JSFL (Flash
JavaScript, Flash' own automation language, very similar to
actionscript/javascript): as a general rule, write some JSFL commands to a
temporary ".jsfl" text file and then tell Finder to open them using Flash.
According to your needs, I would:
-Tell app Finder to open JSFL file which creates a new document.
-Tell app Finder to open art file using Flash.
-Tell app "System Events" to keystroke return (usually the only way to
dismiss the "import options" dialog, as for CS3).
-Tell app Finder to open JSFL file which converts selection into movie clip
and sets its linkage properties, save, publish and close doc.
If you get tired of AppleScript's UI scripting for Flash, search the web for
JSFL or see "extending flash" in the Flash IDE help or Adobe's Flash forums.
jj
_______________________________________________
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