RE: Need Help
RE: Need Help
- Subject: RE: Need Help
- From: Samuel Nitsche <email@hidden>
- Date: Wed, 2 Oct 2002 12:43:39 +0200
HI Elton
You need the the Osax "File Visibility". It's included in the GTQ Scripting
Library.
Once you've installed the Osax, you can to it with the following code:
set theFile to a reference to (path to startup disk as string) &
"Dokumente:Versteck"
tell application "Finder"
activate
if exists alias theFile then
make file invisible theFile -- macht den Ordner unsichtbar
delay 10 -- 10 Sekunden Pause
make file visible theFile -- macht den Ordner wieder sichtbar
else
display dialog "Der Ordner existiert nicht"
end if
end tell
This works with Files AND with Folders.
I only tested in OS 9 - If you use OS X you could try it with a Shell
script.
I hope I could help!
Greetz Samuel alias Pesse
-----Urspr|ngliche Nachricht-----
Von: Elton Hughes [
mailto:email@hidden]
Gesendet: Mittwoch, 2. Oktober 2002 00:44
An: AppleScript Users
Betreff: Need Help
Hello All,
I need to open an invisible file on an AppleShare IP file server. The name
of the file is "Temporary Items". I need to change its permissions so that
users can save existing MS Word documents.
I came up with this (This is my second attempt at scripting):
Tell Finder
set visible of folder Temporary Items in volume Admin to true
End Tell
But it is not passing the syntax check. Can anyone help me with this?
Elton
===========================================================================
NOVA 505 W. Olive Ave. Suite 550
Elton Hughes (Information Technology) Sunnyvale CA 94086
Phone: 408-730-7235 Fax: 408-730-7643
---------------------------------------------------------------------------
_______________________________________________
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.