How write to a file in an invisible folder ?
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