stone <heronstoneattbi.com> wrote:
Files have a property called "extension hidden" that can be set to true> I want to automate a simple finder procedure that I do several times
> almost every day and a friend tells me that Apple Script won't do it.
> Here's what I want to do...
> in the finder
> select several files in a folder
> Get Info
> expand Names & Extension panel
> check the Hide extension box
> close the Get Info window
> This seems like such a simple thing but I've been unable to get
> Apple Script to do it.
> How can I do this?
> Do I need a 3rd-party app?
or false. Driving the interface is the long and hard (and, in an
application as scriptable as the Finder, basically wrong) way to do it.
Assuming you want your script to operate on the current selection, you
could just write something like this:
tell application "Finder"
set s to the selection
repeat with i in s
set i's extension hidden to true
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>
When replying by e-mail, use plain text ONLY to make sure I read it.
Due to spam and viruses, I filter all mail with HTML or attachments.