InDesign AppleScript to Save Document As -- I need help

I’m a complete rookie and have been learning applescript for different purposes. I came across a SaveDocumentAs.as script but am unable to get it to work.

Is the script deficient or is it user error?

Here’s the example I’ve been trying to use:

--SaveDocumentAs.as 
--An InDesign CS2 AppleScript 
--If the active document has not been saved (ever), save it. 
tell application "InDesign CS.app"
	if saved of active document is false then
		--If you do not provide a file name, InDesign will display the Save dialog box. 
		tell active document to save saving in "Macintosh HD:Users:ramon:Desktop:2testing_1220.indd"
	end if
end tell

Thanks for the help in advance.

razor7132

Model: iMac G5
AppleScript: 1.10
Browser: Firefox 1.0.7
Operating System: Mac OS X (10.4)

razor:
Try this…


tell application "InDesign CS"
   if saved of active document is false then
        save document 1 in "Macintosh HD:Users:ramon:Desktop:2testing_1220.indd"
   end if
end tell

I don’t have ID on this machine so I can’t compile this.

Jim Neumann
BLUEFROG

Bluefrog -

I’ll give it a try.

thanks!

Ramon