🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
2 messages
2 total messages Started by jeanclaude Wed, 18 Feb 2009 09:15
error message Indesign CS2 when saving a document
#1149
Author: jeanclaude
Date: Wed, 18 Feb 2009 09:15
35 lines
1441 bytes
Indesign CS2, MAC OS 10.4.11

Hello to everybody

I have this small script for saving a document

tell application "Adobe InDesign CS2"
set Thepath to (path to desktop) as string
set Thepathf to Thepath & "Rclue Indesign Grids:"
try
info for file Thepathf
set Thepath to Thepathf as string
end try
set Thepath to Thepath & "4x4fac_100001.Indd"
set file_ref to open for access file Thepath
close access file_ref
save active document to Thepath
close active document
end tell

It is part of an application which is running correctly on several computers

For one of my client I got now this error when executing the save instruction

"Adobe Indesign CS2 error file "name of the file" can't be found"

and what I get in the folder is an empty file

Manually we can save the file

Have you already met this problem, thank you for your help

Regards

JeanClaude
Re: error message Indesign CS2 when saving a document
#1156
Author: Shane_Stanley
Date: Wed, 18 Feb 2009 12:18
15 lines
1691 bytes
I'm a bit baffled by what your code is doing exactly. All you should need
is:

tell application "Adobe InDesign CS2"
set Thepath to (path to desktop) as string
set Thepathf to Thepath & "Rclue Indesign Grids:"
set Thepath to Thepath & "4x4fac_100001.Indd"
save active document to Thepath
close active document saving no
end tell 


-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
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