Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Applescript to autosave InDesign document to specific location every x seconds?

New Here ,
Aug 03, 2015 Aug 03, 2015

Hi,

I'm a complete newbie to Applescript but have spent a while searching the internet trying to cobble together a script that, when saved as an application and opened on launching inDesign, will automatically save the document I'm working on to a specific folder every few minutes. This is what I have so far, but I'm not sure it's having the desired effect (just running the script from the editor isn't producing any saves of the file I have open):

repeat

delay 60

  tell application "Adobe InDesign CS6" to save front document to "path_goes_here"

end repeat


Can anyone help me troubleshoot this?


Thanks

TOPICS
Scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Aug 03, 2015 Aug 03, 2015

Hi,

Try this ..

on run {}

    set mPath to "path_goes_here"

    repeat

        delay 60

        tell application "Adobe InDesign CS6"

            try

                set doc to active document

                set docName to name of doc

                save a copy doc to mPath & docName

            end try

        end tell

    end repeat

end run

Regards

Ronald

Translate
Enthusiast ,
Aug 03, 2015 Aug 03, 2015

Hi,

Try this ..

on run {}

    set mPath to "path_goes_here"

    repeat

        delay 60

        tell application "Adobe InDesign CS6"

            try

                set doc to active document

                set docName to name of doc

                save a copy doc to mPath & docName

            end try

        end tell

    end repeat

end run

Regards

Ronald

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2015 Aug 03, 2015

Hi Ronald, thanks for your help!  This worked great. Can I ask another quick question? I tried using the same script but for InCopy to save a version of what I was working on (and remembered to change the application name), but it only seems to save an InDesign file. Is there a way I can make this work for InCopy documents too?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 04, 2015 Aug 04, 2015

Hi,

Sorry I don't know InCopy ...

Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2015 Aug 04, 2015

Don't worry! Thanks for you help anyway!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 04, 2015 Aug 04, 2015
LATEST

Don't forget to mark as Answered

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