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

Re: Set visible


  • Subject: Re: Set visible
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 16 Aug 2002 12:12:29 -0700

On 8/16/02 11:47 AM, "Robert Poland" <email@hidden> wrote:

> With an eye to controlling the visibility of a folder -
>
> askPassword
> if result = "xxxxxx" then
> tell application "Finder"
> set visible of folder "My PassWords" -- shortened for clarity
> end tell
> end if
>
> Gives ERROR:
> "Finder got an error: Can't set visible of folder "My PassWords" -- "
>
> Is this even possible before Jaguar?

Set it to what? If it _did_ have a 'visible' property - like processes
(running applications) do - it would be a boolean property, meaning you
would need to set it to 'true' or 'false'. But, checking the Finder
Dictionary in OS 10.1.5/AS 1.8.3, I do not see any 'visible' property for
'folder', nor for 'container' - which it inherits from - nor for 'item' -
which 'container' inherits from. So the answer is no.

The question is: do you know about application dictionaries, or do you just
make stuff up, hoping it will work? If you know about dictionaries, you
should use them as your first resource. You could have checked as I just
did. If you _don't_ know about them, you'd better stop whatever you're doing
and start perusing the Finder dictionary and those of any other application
you intend to script, right now. You can't possibly do any scripting without
doing so. Even then, you will find mysteries and will have questions to pose
here. But if you don't make it a practice to consult the application
dictionaries first of all, you're going to be writing here for very line of
code except "end tell".

>
> Currently I'm using OS 10.1.5 and AS 1.8.3.

So am I.


--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Set visible
      • From: Doug McNutt <email@hidden>
References: 
 >Set visible (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: How to Trigger keystrokes
  • Next by Date: Re: Simple folder walk...I think
  • Previous by thread: Set visible
  • Next by thread: Re: Set visible
  • Index(es):
    • Date
    • Thread