• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 14 Jan 2003 10:47:25 -0800

On 1/14/03 9:56 AM, "Jacco Rens" <email@hidden> 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

Because 'path to desktop' has nothing to do with the Finder, it's a
scripting addition in Standard Additions which has an 'alias' result. But
the Finder has its own 'desktop' term (a Finder file), so it's confused.
Just remove the Finder tell block and you'll be OK.

--
Paul Berkowitz
_______________________________________________
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: open for access file pathstring with write permission
  • Next by Date: Re: open for access file pathstring with write permission
  • Previous by thread: Re: open for access file pathstring with write permission
  • Next by thread: Re: open for access file pathstring with write permission
  • Index(es):
    • Date
    • Thread