hi,
can anyone tell me what the problem is with my script? the problem is on the print line… i think. this is my first script so please excuse any glaring errors.
thanks
cathryn
tell application “Macintosh HD:Applications (Mac OS 9):QuarkXPress 4.11:QuarkXPress™ 4.11”
activate
open “Data:Jobs:00041PongrassCommunications:WorkingFiles:00041C_D”
DataFile Path “Data:Jobs:00041PongrassCommunications:Database:0355194_0371208.txt”
set loopCount to 13808
set myNumber to loopCount
repeat until loopCount > 16015
if myNumber < 16015 then
tell application “Macintosh HD:Applications (Mac OS 9):QuarkXPress 4.11:QuarkXPress™ 4.11”
ExportPrint RecordStart myNumber RecordEnd myNumber + 499 OutputFile “Data:Jobs:00041PongrassCommunications:Print:00041C_D:in:00041c_d_” & myNumber
end tell
set filePath to “Data:Jobs:00041PongrassCommunications:Print:00041C_D:in:00041c_d_” & myNumber
tell application “Macintosh HD:Applications (Mac OS 9):QuarkXPress 4.11:QuarkXPress™ 4.11”
tell “Data:Jobs:00041PongrassCommunications:WorkingFiles:00041C_D”
print PostScript file filePath
end tell
end tell
repeat
if not (ExportPrintBusy) then exit repeat
end repeat
set loopCount to loopCount + 500
tell application “Macintosh HD:Applications (Mac OS 9):QuarkXPress 4.11:QuarkXPress™ 4.11”
ExportPrint RecordStart 15807 RecordEnd 16015 OutputFile “Data:Jobs:00041PongrassCommunications:Print:00041C_D:in:00041c_d_00041c_d_15807.ps”
end tell
set filePath to “Data:Jobs:00041PongrassCommunications:Print:00041C_D:in:00041c_d_15807.ps”
tell application “Macintosh HD:Applications (Mac OS 9):QuarkXPress 4.11:QuarkXPress™ 4.11”
tell “Data:Jobs:00041PongrassCommunications:WorkingFiles:00041C_D”
print PostScript file filePath
end tell
end tell
repeat
if not (ExportPrintBusy) then exit repeat
end repeat
GeneralOption JPF 0
close document 1
GeneralOption JPF 1
end if
end repeat
end tell