Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Hi,
Sorry I don't know InCopy ...![]()
Regards
Copy link to clipboard
Copied
Don't worry! Thanks for you help anyway!
Copy link to clipboard
Copied
Don't forget to mark as Answered ![]()
Find more inspiration, events, and resources on the new Adobe Community
Explore Now