• 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: Peter Waibel <email@hidden>
  • Date: Mon, 30 Oct 2006 17:20:13 +0100



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
_______________________________________________
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
  • Follow-Ups:
    • Re: Quark 7
      • From: Gary Tate <email@hidden>
References: 
 >Quark 7 (From: Gary Tate <email@hidden>)

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