• 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: Can't write to file - MacOS 9.1 + AS 1.8.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't write to file - MacOS 9.1 + AS 1.8.3


  • Subject: Re: Can't write to file - MacOS 9.1 + AS 1.8.3
  • From: JJ <email@hidden>
  • Date: Wed, 21 Aug 2002 10:30:08 +0200

> I know this was previously discussed, but I don't recall a resolution or
> solution. I have the following simple script:
>
> set rpfile to "BackDrop:test4" as string
> try
> set transID to open for access file rpfile with write permission
> write "hello" to transID
> close access transID
> on error errmsg
> try
> close access transID
> end try
> display dialog errmsg
> end try
>
> I get the following error message:
>
> Can't make file "BackDrop:test4" into a <<class fsrf>>.

Hi.

I can't re-create your problem, but... Did you tried...

set rpfile to "BackDrop:test4"
...
set transID to open for access rpfile with write permission
...

(without "file")

Or, if it doesn't work... Why don't

tell app "Finder" to set new_file to (make file at desktop)
set transID to open for access new_file with write permission
...

Bye!

JJ
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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.

  • Prev by Date: AS and iMovie
  • Next by Date: Re: Address Book in Eudora
  • Previous by thread: Can't write to file - MacOS 9.1 + AS 1.8.3
  • Next by thread: Re: Can't write to file - MacOS 9.1 + AS 1.8.3
  • Index(es):
    • Date
    • Thread