• 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
How write to a file in an invisible folder ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How write to a file in an invisible folder ?


  • Subject: How write to a file in an invisible folder ?
  • From: Stefan Eriksson <email@hidden>
  • Date: Mon, 20 Sep 2004 13:21:12 +0200

Greetings again !

Trying to write/create a file in an invisible folder like this, problem is that since the folder is invisible it seems like the folder can be found.... and then not written to... i need the volume to be nobrowse (not show up on desktop) since we are writing logfiles about usage of our machine.

Code looks like this:


set theusername to "ticker"
set thepassword to "ticker"
set theservername to "steeri.mkv.mh.se"
set thevolumename to "ticker"

set scriptcode01 to "mkdir /Volumes/" & thevolumename
do shell script scriptcode01
set scriptcode02 to "mount_afp -o nobrowse afp://" & theusername & ":" & thepassword & "@" & theservername & "/" & thevolumename & " /Volumes/" & thevolumename
do shell script scriptcode02


-- This row works fine...
-- set thefile to "PB G4 Ster:Users:ster:Desktop::steeri.txt" as alias
-- And this one don“t...
set
thefile to "ticker:steeri.txt" as alias
try
close access thefile
end try

set fref to open for access thefile with write permission
set tsize to "kalle anka"
write (tsize) to thefile

close access fref

Any ideas for this one ?

/ Ster
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Change in debugging command "log"?
  • Next by Date: Re: Change in debugging command "log"?
  • Previous by thread: Re: Change in debugging command "log"?
  • Next by thread: Re: How write to a file in an invisible folder ?
  • Index(es):
    • Date
    • Thread