Re: GraphicConverter scripting help
Re: GraphicConverter scripting help
- Subject: Re: GraphicConverter scripting help
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 23 Sep 2004 16:32:59 -0700
It doesn't work either. What would 'dummy' mean to start with? The name of a
disk, without a final colon? How could you save it as a disk? It has to be
saved _somewhere_. (The dictionary shows that 'document' is not an element
of the application, so even 'document 1' won't work - that's hardly being
"touchy" when 'document 1' has no meaning, not to mention just 'document' on
its own. It has to be 'window 1' or 'window "Some Name"'.)
Unlike most applications which perpetuate the Standard Suite bug which says
that 'save' saves 'in alias' - which of course it can't if the file doesn't
exist yet - just saving it in a text file path doesn't work either. I don't
know how that can be: it's supposed to be an AppleScript coercion that 'save
in filePath' creates the file. But it doesn't work in GC. However adding 'as
file specification' does work:
set fileSpec to (path to desktop as Unicode text) & "dummy.tiff"
tell application "GraphicConverter"
save window 1 as TIFF in (fileSpec as file specification)
end tell
--
Paul Berkowitz
> From: Brian Johnson <email@hidden>
> Date: Thu, 23 Sep 2004 15:34:43 -0700 (PDT)
> To: Russell McGaha <email@hidden>
> Cc: <email@hidden>
> Subject: Re: GraphicConverter scripting help
>
>
> GC is a little touchy about some things. Try
>
> save window 1 in "dummy" as TIFF
>
> and see if that doesn't work better.
>
> - Brian
>
> On Thu, 23 Sep 2004, Russell McGaha wrote:
>
>> Folks;
>> I'm trying to script GraphicConverter to save a newly created document
>> with a file name gotten from the cilpboard [copied to the clipboard in
>> FileMaker]; here's what I've got so far
>>
>> tell application "GraphicConverter"
>> activate
>> save document in "dummy" as TIFF
>> end tell
>>
>> GraphicConverter, gives me the error "can't make some date into the expected
>> type". Can any one tell me what I'm doing wrong??
>>
>> Russell
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden