Skip navigation
Currently Being Moderated

Is it possible to trigger a script when a file is opened.

Jun 6, 2012 9:43 AM

Tags: #script #javascript

I have a simple script that I need to run when a file is opened in illustrator(cs5) on windows 7. I tried adding the script to the "startup scripts" folder but that only executes when a new instance of illustrator is started. If illustrator is already open and I go to "file/open", the script doesn't run. Any suggestions?

 

Many thanks,
CRS

 
Replies
  • Currently Being Moderated
    Jun 6, 2012 10:09 AM   in reply to raystoney

    Sorry there are NO events classes in AI… You could add it to the feature requests…

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 6, 2012 11:22 AM   in reply to raystoney

    It might be possible from outside the app using AppleScript or VB to watch AI… ( might even be possible with the BridgeTalk class ). I haven't tried this… I wouldn't like that approach…

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 2:18 AM   in reply to Muppet Mark

    It is somehow possible but maybe not using js. For example, there is a script/plugin to check if white objects have overprint turned on - available on http://www.worker72a.com/72a_Pages/CS3_Plug-ins.htm#WOPD . It would be intresting to know how it is made.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 9:04 AM   in reply to postworek111

    Plug-in's are different story altogether… and better discussed in the sdk forum…

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points