Re: GraphicConverter: save in alias, alias ignored
Re: GraphicConverter: save in alias, alias ignored
- Subject: Re: GraphicConverter: save in alias, alias ignored
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 02 Mar 2004 09:37:34 -0800
On 3/2/04 8:48 AM, "Walter Ian Kaye" <email@hidden> wrote:
>
At 07:55a -0800 03/02/2004, Paul Berkowitz didst inscribe upon an
>
electronic papyrus:
>
>
> On 3/2/04 7:13 AM, "Walter Ian Kaye" <email@hidden> wrote:
>
>
>
>> I'm trying to script GC, but when I tell it to save a window in a
>
>> file, it instead saves it into the original file, overwriting it. :/
>
>>
>
>> GC 4.9.3, OS X 10.2.8.
>
>>
>
>> (And yes, I did verify that the paths are correct.)
>
>>
>
>> Any ideas? Is it just broken?
>
>>
>
>> I tried both without the destination files existing, and then again
>
>> after pre-creating zero-length files. Neither worked.
>
>
>
> Have you tried saving it in the [text] file path you want? (Just text, not
>
> file or alias.) Same thing?
>
>
No, I hadn't tried that. Hey, that works! Holy moly.
>
This app sure is riddled with odd scripting behaviors...
>
>
How'd you happen to think of saving into a plain file path?
That has always worked - AppleScript does the coercion itself. In some apps,
including Outlook Express and Entourage which I script a lot, it's actually
required, since these apps have their own 'file' keyword meaning something
completely different, which takes precedence over AppleScript's own 'file'
keyword. Saving to the filepath has always worked there - and the
AppleScript coercion to file specification was transferred (or maintained)
in OS X - AS 1.6 to be precise, when fileURL took over here.
It's possible that GC also has a 'file' keyword. But it's also possible that
the current confusion in AppleScript 1.9.3 (1.9.x generally) over 'file' is
what's responsible for your problems here, not GC at all. (You can also try
'as file specification' - that often works too, but is not needed.) Thank
goodness for the filepath-to-fileURL coercion. Safest is to use Unicode
text, of course, not string.
--
Paul Berkowitz
_______________________________________________
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.