Skip to main content
Participant
January 22, 2019
Answered

Possible to batch publish or run JSFL without Animate installed and/or running?

  • January 22, 2019
  • 2 replies
  • 1494 views

In my searching, it looks like there's not a standalone CLI for compiling Adobe Animate documents or running JSFL. Is that true?

Our team has a framework that can have any number of Animate documents that compile to HTML5 canvas. We're setting up a task that will iterate each document and publish them all as part of the build command. We're trying to determine if this would necessitate having Animate installed and running while the build command is running.

Thanks in advance.

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

You can use a command line tool but I think you're gonna need Animate/Flash installed.

To run a script from the command line on Windows:

• Use the following syntax (add path information as required):

"flash.exe" myTestFile.jsfl [-AlwaysRunJSFL]

Use the -AlwaysRunJSFL option to bypass the dialog box that prompts you to confirm script execution. To run a script from the “Terminal” application on the Macintosh, use either of the following:

To run a script from the “Terminal” application on the Macintosh, use either of the following:

• Use the following osacript syntax (add path information as required):

osascript -e 'tell application "flash" to open alias "Mac OS X:Users:user:myTestFile.jsfl" '

The osascript command can also run AppleScript in a file. For example, you could include the following text in a file named myScript:

tell application "flash"

open alias "Mac OS X:Users:user:myTestFile.jsfl"

end tell

Then, to run the script, you would use this command:

osascript myScript

• Use the flashpro command:

/Applications/Adobe\ Flash\ CC/flashpro.app/Contents/MacOS/flashpro

But I hope there's a workaround.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf

Regards,

JC

2 replies

Legend
January 23, 2019

BBaysinger  wrote

We're trying to determine if this would necessitate having Animate installed and running while the build command is running.

If Animate isn't installed, what exactly are you imagining would be running the script and publishing the FLA?

Seems a bit like asking if you can recalculate an Excel spreadsheet without Excel installed, or render a Premiere project without Premiere installed.

Participant
January 23, 2019

Not really. Many IDEs are just a front-end for command-line based software.

I think I already knew the answer. I just needed to confirm absolutely.

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
January 23, 2019

Hi.

You can use a command line tool but I think you're gonna need Animate/Flash installed.

To run a script from the command line on Windows:

• Use the following syntax (add path information as required):

"flash.exe" myTestFile.jsfl [-AlwaysRunJSFL]

Use the -AlwaysRunJSFL option to bypass the dialog box that prompts you to confirm script execution. To run a script from the “Terminal” application on the Macintosh, use either of the following:

To run a script from the “Terminal” application on the Macintosh, use either of the following:

• Use the following osacript syntax (add path information as required):

osascript -e 'tell application "flash" to open alias "Mac OS X:Users:user:myTestFile.jsfl" '

The osascript command can also run AppleScript in a file. For example, you could include the following text in a file named myScript:

tell application "flash"

open alias "Mac OS X:Users:user:myTestFile.jsfl"

end tell

Then, to run the script, you would use this command:

osascript myScript

• Use the flashpro command:

/Applications/Adobe\ Flash\ CC/flashpro.app/Contents/MacOS/flashpro

But I hope there's a workaround.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf

Regards,

JC