Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark 6.5 Production Scripting Question



I'm having a problem getting this old code translated to a newer more
improved version. Here's the pertinent old code:

tell application "Finder"
   duplicate file (QuarkTemplateFolder & templateFile) to disk "PageDrop"
with replacing
   set name of file ("PageDrop:" & templateFile) to myDocumentName
end tell

tell application "QuarkXPress"
   Open [alias file ("PageDrop:" & myDocumentName)] use doc prefs yes remap
fonts no do auto picture import no reflow no
   >> errors here with "Can't make "file PageDrop:Page1A.qxp" into an
expected data type"" (paraphrased)
        --The part in [] I've tried several incantations of, none work so
far.
end tell

The workflow:

The Finder duplicates the appropriate template file to the working folder
(actually a disk named "PageDrop".)

It renames the file to the name of the editorial eps file that was dropped
for pagination, adding the ".qxp" to the end of the name (that code I didn't
show). I tried adding ".qxt" as well (template type) and still errors.

I tell QXP 6.5 to open the recently renamed file. This is where the error
is. If I open the file direct from QXP, the renaming isn't shown -- it still
has the name of the original template file showing in the title bar.

What step am I missing here?

Ken Grimm
Prepress Manager
San Angelo Standard-Times
34 W. Harris
San Angelo, Texas 76903
Work: 325-659-8357
Cell: 325-374-4238
Fax: 325-659-8172
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.