Make new document with an Illustrator Extension
hi
when try create new document html extension calling jsx script script freezes until illustrator put focus (for example clicking it)
only after focus returns illustrator script continue, in meantime illustrator icon jump around nutter.
i have not tired out on windows mac.
to around main.js exec 3 oascript comands
1) create document: oascript -e 'tell application "adobe illustrator" make new document'
2) focus on illustrator: oascript -e 'activate application "adobe illustrator"'
3) run jsx: oascript 'do javascript "path/to/my/script.jsx"'
this works there obvious drawbacks.
has managed create via extension new document , have script work on without need focusing on illustrator without use of oascript?
if how?
interestingly enough, if 1 runs the applescript editor
tell application "adobe illustrator" make new document
it work fine. if 1 runs terminal
oascript -e 'tell application "adobe illustrator" make new document'
it freezes illustrator , causes icon jump nutter until refocus.
regards
trevor
what if try first, bridgetalk.bringtofront() method trick?
More discussions in Illustrator Scripting
adobe
Comments
Post a Comment