Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by KEVINP1
Tue, 03 Mar 2009 23:36
[AS] saving, different name, different location
Author: KEVINP1
Date: Tue, 03 Mar 2009 23:36
Date: Tue, 03 Mar 2009 23:36
44 lines
2277 bytes
2277 bytes
Hi
I have a Indesign CS3 file saved as a template, what I am trying to do is save the template as a document in a different place with a different name.
I have the below which works fine, but I have to paste the file name into the text field (which is stored on the clipboard) thrown via the prompt "save document 1 to (choose file name)", and manually choose a destination to save to.
I have the name of the new file, I have a new location for the file, but I am uncertain as
to how to go about executing a script to do what I am seeking, any help appreciated please.
-----------------------
tell application "Adobe InDesign CS3"
activate
set myDoc to active document
set Doc_Width to page width of document preferences of myDoc
set Doc_Height to page height of document preferences of myDoc
set _W to round {(Doc_Width)} as number
set _X to result
set _Y to round {(Doc_Height)} as number
set _Z to result
-------------
if (_Z is "241" as number) and (_X is "311" as number) then
set _H to "H"
-------------
end if
end tell
set _folders to (folders of desktop whose name begins with "Q")
repeat with _folder in _folders
set _Name to name of _folder
count words of _Name
if the result is 2 then
set _NewName to (text 2 thru 7 of _Name) & (text 9 thru -1 of _Name)
else
set _NewName to (text 2 thru -1 of _Name)
end if
end repeat
set the clipboard to _NewName & "-" & _H as string
tell application "Adobe InDesign CS3"
save document 1 to (choose file name)
end tell
end tell
------------------------
Kev
Re: [AS] saving, different name, different location
Author: Shane_Stanley
Date: Wed, 04 Mar 2009 00:31
Date: Wed, 04 Mar 2009 00:31
3 lines
802 bytes
802 bytes
Open the dictionary for standard additions, and look up choose file name. You need something like: save document 1 to (choose file name default name _NewName default location _folder)
Re: [AS] saving, different name, different location
Author: KEVINP1
Date: Wed, 04 Mar 2009 02:52
Date: Wed, 04 Mar 2009 02:52
3 lines
651 bytes
651 bytes
Cheers Shane that's the direction im needing to go. Kev
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads