I’m currently playing around with creating an applescript droplet that will in the end allow me to drop multiple files to be opened and then saved. This is all I need to do as this updates the old indesign files to CS5 (we have a lot of them).
I’m able to create a droplet that opens multiple indesign files, but im having trouble with them being saved. Here is the script so far:
on open these
tell application "Adobe InDesign CS5"
open these
end tell
end open
tell application "Adobe InDesign CS5"
save these
end tell
At the moment its not executing the “save these” command. Seems like it would be straightforward enough but i’m findin it hard to get information how to tell indesign to save these opened documents that i’ve dropped in the droplet. I’m probably not using the right “selector” (if I can use that term). So i would like the script to “select” the open documents and these “selected” documents then need to be saved (a simple save command rather than a save as).
And ideally i would like for the script to open the first document and saving it before moving on to the second document and so forth. But that is secondary.
I’ve also tried this script:
on open these
tell application "Adobe InDesign CS5"
open these
end tell
end open
tell these
save
end tell
Same result here as well. I’m a bit of a beginner on this so I might’ve overlooked something very basic. Any help would be much appreciated!
Thank you.
Edit: Typo in the title, whoops!
you can’t just tell indesign to save “thees” you have to talk to each item specifying item and and location format etc for for saving
so you will have to loop through each one
pseudo code here
here is the dictionary instructions for save
save v : Save the document
save specifier
[to alias or text] : Where to save the document. If the document is already saved, a copy is saved at this path, the original file is closed the new copy is opened
[stationery boolean] : Whether to save the file as stationery. Can accept: boolean (Default: FALSE).
[version comments text] : The comment for this version
[force save boolean] : Forcibly save a version. Can accept: boolean (Default: FALSE).
→ document : The saved document
as DigiMonk noted you may just be able to use close by itself