• 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: OSX Coding Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: OSX Coding Help (From: "Steven D. Majewski" <email@hidden>)

  • Prev by Date: re: Strange problem with text item delimiters
  • Next by Date: Re: Strange problem with quotes running away and hiding!
  • Previous by thread: Re: OSX Coding Help
  • Next by thread: Re: OSX Coding Help
  • Index(es):
    • Date
    • Thread