• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GraphicConverter & saving files in new places
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >GraphicConverter & saving files in new places (From: "Geoffrey F. Green" <email@hidden>)

  • Prev by Date: TIDs default in AS is {""}
  • Next by Date: Re: Script Modification
  • Previous by thread: GraphicConverter & saving files in new places
  • Next by thread: Re: GraphicConverter & saving files in new places
  • Index(es):
    • Date
    • Thread