• 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: change visibility/x-ray specs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change visibility/x-ray specs


  • Subject: Re: change visibility/x-ray specs
  • From: Richard 23 <email@hidden>
  • Date: Tue, 20 Mar 2001 05:51:54 -0800

>We just did this yesterday here. Using Akua Sweets, yes, without osax, no.
>
>With Akua Sweets, this is how to toggle visibility of a file 'theFile' from
>on to off or off to on:
>
>
> set extInfo to extended info for theFile
> set invisStatus to invisible status of extInfo -- i.e. true or false
> set invisible status of extInfo to (not invisStatus) -- opposite
> apply catalog info extInfo to theFile

That strikes me as a little awkward. XCMD Osax contains Frederic
Rinaldi's
"Set File Flag XCMD" and a handler which uses it might look something
like:

on IsInvisible(theItem, theState)
Set File Flag (theItem as string) flag "isInvisible" to theState
end IsInvisible

IsInvisible("Private:even more dead beef", true)

The available named file flags are:
hasCustomIcon, isStationery, hasBundle, nameLocked, isInvisible

NOTE: an XCMD is a HyperCard command, and the XCMD Osax provides the means
to call these externals from AppleScript. There's a lot of these out
there,
probably many which provide functionality not currently provided by an
osax.

Frederic Rinaldi is the undisputed king of Hypercard Externals...to see
what
he currently has available check out his site:

<http://perso.wanadoo.fr/frederic.rinaldi/>

Many of his XCMDs are contained in the XCMD osax maintained by Ed Lai (the
Programmer's Tool guy whose name seems to be attached to even the earliest
AppleScript documentation I've read through). Newer versions of many of
those XCMDs are available on the Rinaldi site.

So before resorting to coding your own solution in C...it's always worth a
quick search of the existing XCMDs. Keep hope alive!

R23


  • Prev by Date: Re: FileMaker ARGH!!!!
  • Next by Date: RE: FMP Turn On Web Companion?
  • Previous by thread: Re: applescript-users digest, Vol 2 #514 - 17 msgs
  • Next by thread: [OFF] Re: upgrade issues: 8.1 --> X
  • Index(es):
    • Date
    • Thread