Re: OSX Coding Help
Re: OSX Coding Help
- Subject: Re: OSX Coding Help
- From: Jeff Grossman <email@hidden>
- Date: Mon, 30 Jun 2003 15:58:14 -0700
on 6/30/03 3:01 PM, Steven D. Majewski at email@hidden wrote:
>
>
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! )
Adding the "file" looks like it worked.
Thanks for your help.
Jeff
--
Jeff Grossman (email@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
_______________________________________________
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.