Re: Saving a document in Canvas
Re: Saving a document in Canvas
- Subject: Re: Saving a document in Canvas
- From: Jay Petronis <email@hidden>
- Date: Tue, 18 Mar 2003 15:34:26 -0700
To successfully save a document, Canvas expects a full path as a
string, as well as some export option.
Changing these two lines seems to suppress the error:
tell application "Finder" to set FileChosenName to (choose file name)
as string
save front document in FileChosenName as Canvas with options {use
compression:false}
Jay
On Tuesday, March 18, 2003, at 08:17 AM, Jeremy Sellors wrote:
In OS X 10.2.4 the line in the following script, "save front document
in FileChosenName as Canvas", generates an error "Canvas 8 got an
error: Can't make some data into the expected type."
tell application "Canvas 8"
activate
make new document at beginning with properties {document
type:illustration}
--document type no document/illustration/publishing/presentation
[r/o]
repeat with i in theFileList
set x to folderpath & name of i as string
place x into layer 1 of page 1 of front document at position {10, 20}
tell application "Finder" to set FileChosenName to choose file
name save front document in FileChosenName as Canvas end repeat
end tell
_______________________________________________
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.