Re: sending a fax from safari
Re: sending a fax from safari
- Subject: Re: sending a fax from safari
- From: John Stewart <email@hidden>
- Date: Wed, 14 Jul 2004 07:55:38 -0400
On 07/14/04 at +0200 Robert Whittle said this
>
Hi there. I'm brand new to applescript, and ... I've run in to a little
>
problem.
>
>
My goal is to send a fax via applescript and I can across this example:
>
>
http://developer.apple.com/technotes/tn2002/tn2082.html
>
>
set theDoc to alias "Macintosh HD:ReadMe"
>
set printConfig to {copies:3, starting page:2, ending page:2, target
>
printer:"Prints Charming"}
>
print theDoc with properties printConfig with print dialog
>
>
>
When I try and compile this script I get the following error:
>
Expected ":" but found identifier.
>
(the script doesn't seem to like the space in "starting page:2" on line
>
2:
>
>
I also get an error on the next line (line 3)
>
Expected end of line, etc. but found identifier
>
"printConfig" is highlighted as the offending element
That TechNote is for developers to alert them to an updated AppleEvent. The script shown is just an
example of how the commands would be used and may not work as written.
What you need to make it work is an Application that implements the updated print command. Then
enclose the command in a tell block i.e. -
tell application "soandso"
print command goes here
end tell
To learn whether you chosen app does or doesn't implement it you need to look at the print command in
it's dictionary.
To see a dictionary, drag the chosen application's icon to your script editor's icon and drop it onto
it. The alternative is to use your script editor's Open Dictionary command to locate and select the
application.
JBS
--
If everything seems to be going well, you have obviously overlooked something.
_______________________________________________
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.