• 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: Philippe GRUCHET <email@hidden>
  • Date: Fri, 17 Jan 2003 01:44:35 +0100

From: Jacco rens <email@hidden>

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

Just try this:

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


Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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.

  • Prev by Date: Re: applescript-users digest, Vol 3 #1251 - 17 msgs
  • Next by Date: Re: Why does the Script Editor Service do this?
  • Previous by thread: Re: open for access file pathstring with write permission
  • Next by thread: Removing every instance of a substring
  • Index(es):
    • Date
    • Thread