Indesign batch convert from quark docs trouble
Indesign batch convert from quark docs trouble
- Subject: Indesign batch convert from quark docs trouble
- From: Mátyás Ferenc Farkas <email@hidden>
- Date: Wed, 01 Oct 2003 22:39:49 +0200
Hi,
I wrote the following script to convert quark docs to indesign. I use indy
3.0 beta.
tell application "Finder"
considering application responses
set theFolder to choose folder with prompt "Show me the Folder!"
set theitems to every item in theFolder
repeat with anitem in theitems
set thename to name of anitem
tell application "InDesign 3.0"
with timeout of 300 seconds
open anitem without showing window
set the filepath to (theFolder as string) & thename & "
converted.indd"
end timeout
save document 1 to filepath
close every document
end tell
end repeat
end considering
end tell
The the problem with it is, that it does not wait for the open/convert to
complete, no mather what I set in the with timeout of 300 seconds command:
Script 3quark doc converter2 started
tell application "Finder"
choose folder with prompt "Show me the Folder!"
--> alias "Samurai Jack:private:var:root:Desktop:qua:"
get every item of alias "Samurai Jack:private:var:root:Desktop:qua:"
--> {
document file "HP Tower datasheet" of folder "qua" of folder
"Desktop" of folder "root" of folder "var" of item "private" of startup
disk,
document file "HP Tower datasheet copy" of folder "qua" of
folder "Desktop" of folder "root" of folder "var" of item "private" of
startup disk
}
get name of document file "HP Tower datasheet" of folder "qua" of folder
"Desktop" of folder "root" of folder "var" of item "private" of startup disk
--> "HP Tower datasheet"
open document file "HP Tower datasheet" of folder "qua" of folder
"Desktop" of folder "root" of folder "var" of item "private" of startup disk
without +class psiw;
end tell
tell application "InDesign 3.0"
save document 1 to "Samurai Jack:private:var:root:Desktop:qua:HP Tower
datasheet converted.indd"
end tell
Script 3quark doc converter2 finished
--> InDesign 3.0 got an error: Can't get document 1.
could anyone help me? It would be nice, if all dialog box would be
dismissed, and when the script opens at script debugger, it opens the indy
3.0, when the script is executed, it runs the indy 2.0.2, atrhough at the
tell block there is still 3.0, so I like to execute it at indy 3.0.
--
Thanks!
Matyas Ferenc Farkas
=-=-=-=-=-=-=-=-=-=-=-=-=-=
E-mail/iChat: email@hidden
=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.