Re: Make Finder files invisible
Re: Make Finder files invisible
- Subject: Re: Make Finder files invisible
- From: Martin Orpen <email@hidden>
- Date: Mon, 21 Jun 2004 09:48:36 +0100
on 21/6/04 8:18 am, Ronald Hofmann at email@hidden wrote:
>
Good morning.
>
I'm trying to make a file invisible by this:
>
>
tell application "Finder"
>
set theItem to choose file
>
set the visible of theItem to false
>
end tell
>
>
After execution I get an error: Finder has got an error: visible of
>
alias \"MacOSX:Users:ronny:Desktop: Read Me\" cannot be set to
>
false"
>
>
What am I doing wron?
Don't think you can set the "visible" of a file.
This is a an *alternative* to make them invisible/visible (for OS X):
tell application "Finder"
set x to choose file with prompt "choose a file"
set y to name of x
if item 1 of y is not "." then
set name of x to "." & y
else
set y to items 2 thru (count of items in y) of y as text
set name of x to y
end if
end tell
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.