• 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 help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open for access help


  • Subject: Re: open for access help
  • From: Larry McMunn <email@hidden>
  • Date: Sat, 21 Apr 2001 09:23:43 -0400

RE:
try
tell application "Finder" to set startupDisk to name of startup disk
set fRef to ""
set fRef to open for access file (startupDisk & ":Desktop Folder:try")
with write permission
write "hcir" to fRef
close access fRef
on error errMsg number errNum
if fRef is not "" then
close access fRef
end if
end try


TRY THIS:

tell application "Finder" to set startupDisk to name of startup disk
set fRef to (startupDisk & ":Desktop Folder:try")
open for access file fRef with write permission
set eof file fRef to 0
write "hcir" to file fRef starting at eof
close access file fRef

Works on my machine.

Good Scripting! :-)

Larry McMunn
President

McMunn Associates, Inc.
Specialists in automated Data Visualization thru Apple products
Collingswood, NJ

(856) 858-3440

---------------------------------------------------------------


  • Prev by Date: Re: Quark:Vertical measure
  • Next by Date: Re: Setting the startup disk.
  • Previous by thread: Re: open for access help
  • Next by thread: Targeting an application where there are two versions with the same name
  • Index(es):
    • Date
    • Thread