• 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: open for access file pathstring with write permission
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open for access file pathstring with write permission


  • Subject: Re: open for access file pathstring with write permission
  • From: Ben Waldie (AppleScript Guru) <email@hidden>
  • Date: Wed, 15 Jan 2003 20:25:08 -0500

Jacco,

On Tuesday, January 14, 2003, at 12:35 PM, Jacco rens wrote:

can someone give me insight why this gives an error, google doesn't come up with an clear answer :(
Mac OS X 10.2.3

tell application "Finder"
set pathstring to ((the path to desktop) as text) & "test"
set theNote to open for access file pathstring with write permission
write "test, test" to theNote
close access theNote
end tell

Try saying (path to desktop folder) or taking it out of the "Finder" tell block, which it doesn't really need to be in. The reason it's failing the way it is now is because the desktop is an object in the Finder. So, apparently the Finder's misinterpreting your command.

Thanks,

- Ben

Benjamin S. Waldie
AppleScript Guru

http://www.applescriptguru.com
http://www.applescripttraining.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: 
 >open for access file pathstring with write permission (From: Jacco rens <email@hidden>)

  • Prev by Date: Re: Quark 5 can't copy selection w/styles
  • Next by Date: Re: interesting failure in 9 setting creator of OSX file with
  • Previous by thread: open for access file pathstring with write permission
  • Next by thread: Re: open for access file pathstring with write permission
  • Index(es):
    • Date
    • Thread