Re: OSX Coding Help
Re: OSX Coding Help
- Subject: Re: OSX Coding Help
- From: "Steven D. Majewski" <email@hidden>
- Date: Mon, 30 Jun 2003 18:01:49 -0400
On Monday, June 30, 2003, at 05:23 PM, Jeff Grossman wrote:
Okay, I tried your idea, but it does not seem to be working for me.
When I
run the script, I get a duplicate file error. Here is a copy of the
script:
set the FishadsAddressFile to open for access "OSX:List
Addresses:Fishads
Addresses" with write permission
I've run into this duplicate-file error problem with open for access.
Usually, the problem is a missing "file" to coerce the path string into
a file spec:
Change your:
set the FishadsAddressFile to open for access "OSX:List
Addresses:FishadsAddresses" with write permission
to:
set the FishadsAddressFile to open for access file "OSX:List
Addresses:FishadsAddresses" with write permission
The first will compile without complaint, but will give you an error
the second time it runs.
The second will (usually) correctly overwrite the file.
( This is on OSX. I stuck the "usually" in because there seems to be
some other strangeness that
happens if you only use a relative filename without a path containing
a folder name. I haven't tried
to sort thru which cases work and which fail -- I just avoid doing
that! )
-- Steve Majewski
_______________________________________________
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.