Ich habe ein Script gefunden, mit dem man Quark 6- als Quark 4-Dateien abspeichern kann. Allerdings haben wir
a) keinen Rechner mit Quark 6 und Quark 5 und
b) bedeutend mehr Quark 5- als Quark 6-Dateien.
Deshalb wäre es von Vorteil, das Script in zwei Teile aufzuteilen (Q6->Q5, Q5->Q4). Wir haben es versucht: die Dokumente werden aufgerufen, aber nicht abgespeichert - offensichtlich haben wir einen Fehler im Script, den wir aber nicht finden (lauter Anfänger, was AppleScript angelangt). Fehlermeldung: Can’t get name of alias "Mac_11esktop Folder:Endseiten_Test:"
Hier ist das Originalscript (Quelle: http://www.quark.com/service/forums/viewtopic.php?t=662&sid=8ca57856b7ea1b84958b6f16708e97ce):
Code:
-- The path to the QuarkXPress 6 application
property QXP6 : "Macintosh HD:Applications:QuarkXPress 6.1:QuarkXPress"
-- The path to the QuarkXPress 5 application
property QXP5 : "Macintosh HD:Applications (Mac OS 9):QuarkXPress:QuarkXPress™"
global saveName5
global saveName4
global origName
on open theseFiles
repeat with i from 1 to the count of theseFiles
set thisFile to item i of theseFiles
using terms from application "Macintosh HD:Applications:QuarkXPress 6.1:QuarkXPress:"
tell application QXP6
(* The parameters to the open event prevent most of the possible dialogs
that can occur on opening a document from stopping the script *)
open thisFile use doc prefs yes remap fonts no do auto picture import no without reflow
(*if ((count of layout spaces of project 1) > 1) then
error "Too many layouts" number 900 -- can't handle multiple layouts
end if*)
set origName to name of project 1 -- save the original name for generating the downsaved names
set saveName5 to (path to desktop) & origName & "_5" as text -- create name for 5.x document
--set saveFile5 to (file saveName5) as file specification -- QuarkXPress is happiest using file specs
--display dialog saveName5
save document 1 in saveName5 version vers 50 -- downsave to 5.x format
close document 1 without saving -- "without saving" avoids the confirmation dialog
set saveName5 to saveName5 as alias
end tell
tell application QXP5
activate --needed to keep some font messages from stopping the script
--display dialog saveName5
open saveName5 use doc prefs yes remap fonts no do auto picture import no without reflow
set saveName4 to (path to desktop) & origName & "_4" as text
save document 1 in saveName4 version vers 40
close document 1 without saving
set saveName4 to saveName4 as alias
end tell
end using terms from
tell application "Finder"
activate
set theDelete to button returned of (display dialog "Delete the QXP 5 file?" default button 1)
if theDelete = "OK" then delete saveName5
end tell
end repeat
end open
a) keinen Rechner mit Quark 6 und Quark 5 und
b) bedeutend mehr Quark 5- als Quark 6-Dateien.
Deshalb wäre es von Vorteil, das Script in zwei Teile aufzuteilen (Q6->Q5, Q5->Q4). Wir haben es versucht: die Dokumente werden aufgerufen, aber nicht abgespeichert - offensichtlich haben wir einen Fehler im Script, den wir aber nicht finden (lauter Anfänger, was AppleScript angelangt). Fehlermeldung: Can’t get name of alias "Mac_11esktop Folder:Endseiten_Test:"
Hier ist das Originalscript (Quelle: http://www.quark.com/service/forums/viewtopic.php?t=662&sid=8ca57856b7ea1b84958b6f16708e97ce):
Code:
-- The path to the QuarkXPress 6 application
property QXP6 : "Macintosh HD:Applications:QuarkXPress 6.1:QuarkXPress"
-- The path to the QuarkXPress 5 application
property QXP5 : "Macintosh HD:Applications (Mac OS 9):QuarkXPress:QuarkXPress™"
global saveName5
global saveName4
global origName
on open theseFiles
repeat with i from 1 to the count of theseFiles
set thisFile to item i of theseFiles
using terms from application "Macintosh HD:Applications:QuarkXPress 6.1:QuarkXPress:"
tell application QXP6
(* The parameters to the open event prevent most of the possible dialogs
that can occur on opening a document from stopping the script *)
open thisFile use doc prefs yes remap fonts no do auto picture import no without reflow
(*if ((count of layout spaces of project 1) > 1) then
error "Too many layouts" number 900 -- can't handle multiple layouts
end if*)
set origName to name of project 1 -- save the original name for generating the downsaved names
set saveName5 to (path to desktop) & origName & "_5" as text -- create name for 5.x document
--set saveFile5 to (file saveName5) as file specification -- QuarkXPress is happiest using file specs
--display dialog saveName5
save document 1 in saveName5 version vers 50 -- downsave to 5.x format
close document 1 without saving -- "without saving" avoids the confirmation dialog
set saveName5 to saveName5 as alias
end tell
tell application QXP5
activate --needed to keep some font messages from stopping the script
--display dialog saveName5
open saveName5 use doc prefs yes remap fonts no do auto picture import no without reflow
set saveName4 to (path to desktop) & origName & "_4" as text
save document 1 in saveName4 version vers 40
close document 1 without saving
set saveName4 to saveName4 as alias
end tell
end using terms from
tell application "Finder"
activate
set theDelete to button returned of (display dialog "Delete the QXP 5 file?" default button 1)
if theDelete = "OK" then delete saveName5
end tell
end repeat
end open