Highlighted

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

Community Beginner ,
Jan 22, 2019

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

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

Views

308

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Community Beginner ,
Jan 22, 2019

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

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

Views

309

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 22, 2019 0
Adobe Community Professional ,
Jan 23, 2019

Copy link to clipboard

Copied

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 23, 2019 1
Adobe Community Professional ,
Jan 23, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 23, 2019 0
Community Beginner ,
Jan 23, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 23, 2019 0