• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quark 7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark 7


  • Subject: Re: Quark 7
  • From: Gary Tate <email@hidden>
  • Date: Mon, 30 Oct 2006 17:02:26 +0000

I know this is not a proper argument, but you should not have to save a QXP doc in n alias because an alias points to an existing doc ... and the fact that you are saving it suggests there may not BE an existing doc :-)

Just more weird behaviour from Quark.

That said, even if I create an empty file (now I CAN use an alias) and try to save over it, this still doesn't work.

I was building a routine to use system events and control the keyboard but you're little routine seems to work quite nicely.

Cheers

Gary



On 30 Oct 2006, at 16:20, Peter Waibel wrote:



The following code works fine under 6x but fails with "Can't make some data into expected type" error in 7.

Set TheFile to "put the path in here"
Tell Application "Quark"
	Save Document 1 in file TheFile
End Tell


That's what Quark's dictionary says:

save: Save an object (from Standard Suite)
	save reference  -- the object to save
 		[in alias] -- the file in which to save the object

so the required parameter should be an alias.

But I testet

tell application "QuarkXPress Passport"
	save document 1 in "Macintosh HD:Users:peterw:Desktop:doc.qxd"
end tell

with success.

And I got an error for
save document 1 in alias "Macintosh HD:Users:peterw:Desktop:doc.qxd"

Considering Versions 7.x the best would be something like:

try
save document 1 in "Macintosh HD:Users:peterw:Desktop:doc.qxd"
on error
try
save document 1 in file "Macintosh HD:Users:peterw:Desktop:doc.qxd"
on error
try
save document 1 in alias "Macintosh HD:Users:peterw:Desktop:doc.qxd"
on error
error
end try
end try
end try


Peter





-------------------------------------------------------
TGI Solutions LLP
Apple Solution Expert
FileMaker Solutions Alliance
http://www.tgisolutions.co.uk
Mobile: 07813 214 129
-------------------------------------------------------



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

This email sent to email@hidden
References: 
 >Quark 7 (From: Gary Tate <email@hidden>)
 >Re: Quark 7 (From: Peter Waibel <email@hidden>)

  • Prev by Date: Re: Quark 7
  • Next by Date: Re: Writing to file as UTF8 with BOM ?
  • Previous by thread: Re: Quark 7
  • Next by thread: Strange character changes
  • Index(es):
    • Date
    • Thread