Re: Invisible files
Re: Invisible files
- Subject: Re: Invisible files
- From: "Marc K. Myers" <email@hidden>
- Date: Sat, 17 Feb 2001 01:50:39 -0500
- Organization: [very little]
>
Date: Fri, 16 Feb 2001 15:45:54 -0800
>
Subject: newbie: Invisible files
>
From: Bret Linford <email@hidden>
>
To: <email@hidden>
>
>
We would like to make a script that will delete the invisible desktop files
>
on a startup disk. How do we 'find' these files in AS
I use the File Visibility osax and here's my version of the script you mentioned:
set diskList to list disks
set aliasList to {}
repeat with aDisk in diskList
set theDisk to (aDisk as text)
set fileText to (theDisk & ":" & "Desktop DB")
try
make file visible file fileText
set aliasList to aliasList & alias fileText
on error
end try
set fileText to (theDisk & ":" & "Desktop DF")
try
make file visible file fileText
set aliasList to aliasList & alias fileText
on error
end try
if aliasList is not {} then
tell application "Finder" to delete aliasList
set aliasList to {}
end if
end repeat
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[2/17/01 1:50:09 AM]