• 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: Show/Hide extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show/Hide extension


  • Subject: Re: Show/Hide extension
  • From: Laine Lee <email@hidden>
  • Date: Tue, 03 Jun 2008 11:06:42 -0500
  • Thread-topic: Show/Hide extension

> By the way, I don't know whether it would work as an application;
> it works just fine as a compiled script.
>
> -- Michelle

I know this is a pretty late reply, but I wanted to make a suggestion that
might help address some concerns that were brought to mind by the messages
posted in this thread.

First of all, I think it might be a good idea to mention that this script is
only useful, I think, if "Show all file extensions" is turned off in the
Advanced section of Finder preferences.

Big Cat has always worked for me in Leopard with no problems. It was a
pleasant discovery after dealing with other problems I had when first
upgrading to Leopard.

BTW, here's a Big Cat compatible version of the script. It works when saved
as a script, not as a script bundle (at least not in Leopard).

-----
on main()
    tell application "Finder"
        set foo to the selection
        if class of foo is list then
            repeat with bar in foo
                my toggle(bar as alias)
            end repeat
        else
            my toggle(foo as alias)
        end if
    end tell
end main

on toggle(foo)
    tell application "Finder"
        set the extension hidden of foo to not the extension hidden of foo
    end tell
end toggle
-----

On My Command was updated to work with Leopard a few months ago.

The 10.5.3 update fixed a problem with Finder-related Automator commands so
that using Get Selected as step 1 shouldn't mess up the workflow if it is
saved as a Finder plug-in, as was the case from 10.5.0 through 10.5.2.

I once wrote a script to let me locate the disk image whose contained volume
I had selected on the desktop. I wrote versions that would allow me to
trigger that script in Big Cat, On My Command, and Automator and made the
results available online. I know the Automator Finder plug-in still works in
Leopard, although I haven't thoroughly tested the Big Cat and On My Command
versions. If you're interested, you can find it here:

http://lonestar.utsa.edu/llee/applescript/showdiskimage.html

Laine Lee


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: quicktime duration changes
  • Next by Date: AppleScript sets busy cursor even when displaying alert
  • Previous by thread: Re: Getting iPod Serial Number
  • Next by thread: AppleScript sets busy cursor even when displaying alert
  • Index(es):
    • Date
    • Thread