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

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]


  • Prev by Date: Re: Repeat With question (newbie level)
  • Next by Date: Multithreading and yielding (was Re: AS Libraries for stay-open CGIs)
  • Previous by thread: Re: Character mangling test
  • Next by thread: Multithreading and yielding (was Re: AS Libraries for stay-open CGIs)
  • Index(es):
    • Date
    • Thread