Re: GraphicConverter & saving files in new places
Re: GraphicConverter & saving files in new places
- Subject: Re: GraphicConverter & saving files in new places
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 09 Nov 2002 17:43:19 -0800
On 11/8/02 6:40 PM, "Geoffrey F. Green" <email@hidden>
wrote:
>
It seems to succeed until it reaches the "save" command -- the name of the
>
window indeed does change. But then I'm informed that a type "-1" error
>
occurred, and that I should go away.
The Dictionary is wrong. You don't save in an alias, you save in a file
specification, which can be coerced if necessary (e.g. the app doing the
saving has a 'file' keyword itself), or for consistency. Although some apps
allow you to save "in" a folder, that's a special coercion. Instead, you
should save in the filePath that you want your saved item to occupy. That
means that, pre-OS X , its name has to be shorter than 32 characters, it
can't have ":" or, in OS X "/" in the name, so substitute "-", and it can't
have the same name as another file in the same folder. You need routines for
all these, or 'choose file name'. When you've got a unique file name with
no improper characters, etc. just save it in the string file path. ( Not
tested with GC, but with many others.)
--
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.