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

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.


References: 
 >Make Finder files invisible (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: Make Finder files invisible
  • Next by Date: Re: Make Finder files invisible
  • Previous by thread: Re: Make Finder files invisible
  • Next by thread: Re: Make Finder files invisible
  • Index(es):
    • Date
    • Thread