Re: Save quark doc works and doesn't?
Re: Save quark doc works and doesn't?
- Subject: Re: Save quark doc works and doesn't?
- From: Shane Stanley <email@hidden>
- Date: Sat, 17 Aug 2002 08:20:17 +1000
On 16/8/02 10:49 PM +1000, Michael Tompsett, email@hidden, wrote:
>
A very simple applescript to save a quark document. This works fine on my
>
mac (OS9.1, Quark 4.11, Applescript Z1-1.6)
>
This is not working on someone elses machine howver who have the same setup
>
(not sure yet if the applescript version is the same). The hard drive path
>
is correct for their machine as well. It comes up with an error about making
>
data into the correct type on the save line. Any reasons why this would
>
occur, could it be they are using a different version of applescript??
>
>
Thanks
>
>
>
set filepath to ("Macintosh HD:thefile")
>
tell application "QuarkXPress 4.11"
>
activate
>
save document 1 in filepath with replacing
>
close document 1
>
end tell
It's probably working for you because you have Jon's Commands or something
similar automatically coercing the path to a file reference. You should be
using:
save document 1 in file filepath
And there's no such parameter as "replacing" with QXP's save command.
--
Shane Stanley, 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.