Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Need to set all files in folder to visible

Need to set all files in folder to visible
Thread Tools
Dedicated MacNNer
Join Date: May 2000
Location: Chattanooga, TN
Status: Offline
Reply With Quote
Apr 10, 2001, 03:54 PM
 
I need to be able to set all the invisible files in a folder to visible, preferably by dropping the folder onto an applet. I've tried this:

on open myFolder
tell application "Finder"
set visible of every file of folder myFolder to true
end tell
end

But this doesn't work. Any suggestions??
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Apr 11, 2001, 01:17 PM
 
Hi tonymac,

Unfortunately, AFAIK the Finder can't handle invisible items, at least up through Classic Mac OS 9.0.x. Instead, try using one of the freeware OSAXen that can set the visibility bit, such as the File Visibility OSAX, the BetterInfoFor OSAX or the Akua Sweets OSAX (these and others are also available via the usual MacScripter.net's Scripting Library).

Regards,

--Paul
     
tonymac  (op)
Dedicated MacNNer
Join Date: May 2000
Location: Chattanooga, TN
Status: Offline
Reply With Quote
Apr 11, 2001, 11:56 PM
 
Thanks for the advice. BetterInfoFor worked perfectly. I had been able to get the status of the invisible tag using "info for" but wasn't able to modify it. With BetterInfoFor, I can read in the value and make changes based on that value. Very cool.

Thanks again!
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Apr 13, 2001, 07:37 AM
 
Hi again tonymac,

No prob... It's these kinds of situations which make us glad that AppleScript supports plug-ins. Long live third-party OSAXen! :-)

Regards,

--Paul
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2