Re: Quark 3 to Quark 4 Question
Re: Quark 3 to Quark 4 Question
- Subject: Re: Quark 3 to Quark 4 Question
- From: Hans Haesler <email@hidden>
- Date: Sat, 18 Nov 2000 21:04:26 +0100
On Sat, 18 Nov 2000, Carey Sydow wrote:
>
I'm trying to put together a script that when Quark 3.32 files are dropped
>
on it, they open in Quark 4.11 and save them in 4.0. I can do this to an
>
individual file [not a 'droplet'], but when trying the 'on open' in a
>
droplet, it doesn't work. Can anyone offer any help?
Carey,
this script takes care of documents and templates. Save it as an application.
---
on run
display dialog "This droplet serves to upgrade \"old\"
XPress documents and templates.
(3.32 and older, or \"impure\" 4.x ones).
Drag & drop the files on it's icon." buttons ,
"OK" default button 1 with icon 1
end run
on open fileList
repeat with aFile in fileList
if file type of (info for aFile) = "XDOC" then
doUpGrade(aFile)
else
tell application "Finder"
set file type of aFile to "XDOC"
my doUpGrade(aFile)
set file type of aFile to "XTMP"
end tell
end if
end repeat
end open
on doUpGrade(aFile)
tell application "QuarkXPress 4.11"
open aFile ,
use doc prefs no remap fonts no do auto picture import no with reflow
save document 1 as document version vers 40
close document 1
end tell
end doUpGrade
---
Note: templates are upgraded, but the modification date is not changed.
Hans
---
Hans Haesler | email@hidden