• 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: "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.

  • Follow-Ups:
    • Re: OSX Coding Help
      • From: Jeff Grossman <email@hidden>
References: 
 >Re: OSX Coding Help (From: Jeff Grossman <email@hidden>)

  • Prev by Date: Re: OSX Coding Help
  • Next by Date: 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