• 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: boldly creating files where no file has been created before (or not...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: boldly creating files where no file has been created before (or not...)


  • Subject: Re: boldly creating files where no file has been created before (or not...)
  • From: Arthur J Knapp <email@hidden>
  • Date: Fri, 25 Jan 2002 10:14:55 -0500

> Date: Fri, 25 Jan 2002 01:25:45 +0000
> From: has <email@hidden>
> Subject: boldly creating files where no file has been created before (or
> not...)

> The following code works fine for me (AS 1.3.7, OS 8.6). My daring and
> courageous tester, however, reports that it fails on their system (AS 1.6,
> OS 9.1).

> store script scriptObj in filePath replacing yes

> The filePath parameter is a string: "Saphir:Desktop
> Folder:AWPS:TemplateObjFolder:test TemplateObj"

> "Couldn't save script file Saphir:Desktop
> Folder:AWPS:TemplateObjFolder:test TemplateObj due to error: File wasn't
> found. : -43"

I don't know why it would work with one version and not with another,
but the fix is to throw the keyword "file" in front of the string:

store script ( scriptObj ) in ( file filePath ) replacing ( yes )

Some scripting additions accept string-paths, while others require
a file specification, (which is appearently what you get when you
throw the word "file" in front of a string-path).


> b) Has AS 1.6 got it in for me?

Is "Has AS 1.6" your new name, has? ;-)


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://www.natural-innovations.com/as/>
on error number -128
end try
}


  • Prev by Date: Re: boldly creating files where no file has been created before (or not...)
  • Next by Date: Re: Weird try block syntax
  • Previous by thread: Re: boldly creating files where no file has been created before (or not...)
  • Next by thread: Re: Weird try block syntax
  • Index(es):
    • Date
    • Thread