Script /  folder icon question

Would there be a script I can run in Apple Script Editor that changes several folder icons inside another folder all at once?

The easiest way to do this would be to create a Service Workflow using Automator, then you can select the desired items in a Finder window, and right-click to bring up a contextual menu where you can choose the service.  Unfortunately, dealing with Automator is a bit of a pain sometimes, but Lion's Open Finder Items action (which doesn't want to cooperate with multiple items) can be worked around with an AppleScript action.  I've tested the following workflow and it works for me (the Get Value of Variable action can be left out if you don't want the selected folders themselves to be changed).  I've also updated my Set Icon application with dialogs that work better and included a progress indicator (for those 'tons of folders') - the application also uses a different bundle identifier, so you'll want to get the new version since that is what the Automator workflow looks for.  The application can still be used on its own by double-clicking or dropping items on it (it won't decend into folders, though).
The workflow:
The Script (paste into the Run AppleScript action):
property bundleID : "com.Menace-Enterprises.Cocoa-AppleScript.Set-Icon"
on run {input, parameters}
  try -- use Spotlight to find the Set Icon application, wherever it may be
    set appPath to first paragraph of (do shell script "mdfind " & quote & "kMDItemCFBundleIdentifier == " & quoted form of bundleID & quote)
  on error errmess number errnum -- oops, not found
    activate me -- bring dialog to front
    display alert "Error " & errnum message "Application 'Set Icon' was not found."
    error number -128 -- cancel
  end try
  tell application "Finder" to open input using (appPath as POSIX file)
  return input
end run

Similar Messages

  • Spotlight: mysterious little purple folder icon at the top

    Spotlight: what is the mysterious little purple folder icon at the top of the Spotlight window? It doesn't seem to do anything. It's visible even when the toolbar is hidden. I can't drag it out of there in the "customize toolbar" section.
    So what is it?

    You may have noticed that your other folder windows have a similar icon in front of their names. You may have even noticed that document windows in various programs have icons (miniatures of their finder icons) in front of their window names, too.
    These are all "proxy icons". You can drag the icon itself (press on it, pause a moment, then you can drag it) instead of closing the Finder window and dragging the folder icon. So, for instance, if you're looking in a folder MyOldDocs and decide you want to trash it, you don't have to close the window and then drag the folder to the trash - you can drag the proxy icon instead. It's a convenience. (You can drag the proxy icon of one Word document into another Word document, for instance, and all the info from the first doc goes into the second one. Or, you can drag the proxy icon of, say, a PDF file right into a mail message window, and that attaches that document to the email message.
    The purple icon in an active Search window doesn't work as a proxy icon because it makes no conceptual sense: you'll have a list of items from various places that meet your search criteria - the window isn't a folder that you can move anywhere. But it keeps the interface look consistent, and there's a reason it's purple with that little cog: that's the icon for a Smart Folder, one that saves the searches you've made that you want to use again. (Say you like to look at all the Word documents you've modified this week - you do a search, save the search, and from then on it's a Smart Folder that constantly updates the "contents" (really just a list) to match the search criteria.
    When you open a Smart Folder, the proxy icon behaves the way a proxy icon should - you can drag it onto the desktop, into another folder, or into the trash - that's because it's a real folder once you've saved it.
    Hope this clears up the purple folder icon question, if not the more philosophical issues brought up otherwise in this thread!
    s.

  • My computer suddenly refuse to start. When I turn it on it gives the startup sound but the screen is grey and after a while a little folder icon with a question mark inside turns up. It doesn't blink. What to do? Nothing happens if I try to start up from

    As I say my computer, a mac mini refuse to start. When I turn it on it gives the startup sound and the screen turns grey and stay that way for a long time. And in the end a small folder icon with a question mark inside (it doesn't blink) turns up in the middle of the screen.
    I have tried to start up from the installation CD holding down the C key on the keyboard. Same result. I have tried different key combinations while starting up. No result or rather same result. Nothing. Is the computer suddenly dead?
    I was about to buy a new computer but I need access to my data on this one (I write this on an iPad) but hven't yet found a way.
    Anybody have any good advice?
    I thought it was a software problem, that the computer couldn't find the startup software or something and maybe it is, but I am beginning to fear that it could be a hardware problem.

    You need to re install OSX. If you have the dmg file downloaded via torrentz this is how you can create a bootable external HD or Flash drive (8 GB+)
    https://discussions.apple.com/message/23957654#23957654
    Peace
    Harry

  • HT1553 I did the back up as instructed... Installed a larger hard drive and followed the restore instructions... Now I get a white screen with a folder icon and blinking question mark. When trying to set startup with new drive I get a bless tool error...

    I did the back up as instructed... Installed a larger hard drive and followed the restore instructions... Now I get a white screen with a folder icon and blinking question mark. When trying to set startup with new drive I get a bless tool error... Help!!

    If you have installed a new hard drive , you will need to have formatted it in Disk Utility correctly. This may explain your problem.
    Boot  into your 10.6 Install disk again at the top menubar > Utilities > select Disk utility and in there select your new hard drive, and select the tab Erase and choose to make the format as  Mac OS Extended Journaled. When that is finished look in the main window to make sure that the partition map scheme says GUID Partition Table.
    Now go to the Restore tab and reinstall from your backup.

  • Hi . i have Intel based iMac. i erased whole hard disk. now it flashes folder icon with question mark... i have no internet or orginal dvd.... i want to clean install any mac osx..friend got mac book pro and osx in dmg format . what are my options?

    hi . i have Intel based iMac. i erased whole hard disk. now it flashes folder icon with question mark... i have no internet or orginal dvd.... i want to clean install any mac osx..friend got mac book pro and osx in dmg format . what are my options?

    On your friend's computer with an internet connection, log into the Mac App Store with your ID and download Yosemite from the Purchases section of the Mac App Store. The make a bootable USB install media using
    http://liondiskmaker.com/
    Then boot from that on your computer and install
    You need an internet connection to install via Recovery mode

  • Starting Up: Folder with Question Mark Icon

    I do not know when this problem began whereas I do not restart my Mac that often. But the problem is that whenever I boot up my MacPro now I get this icon that is a folder with a question mark inside of it, and it keeps blinking.
    The weird thing is, when I insert the OS X disc and book from the HD where OS X is located, it works just fine and dandy, however, using it without the disc just stays at that folder icon screen.
    I have not done anything differently in the past few days to my computer to warrant this so I'm unsure of the problem.

    Did you go back to system preferences startup disk control panel and reset it?
    Might want to run Disk Warrior once a week as well as before and after doing a backup or restore.

  • Folder icon w/question mark?

    Hey...when I try and boot up my macbook it turns on, the start up sound sounds, and then the grey screen will stay on until a folder icon with a question mark in the middle starts flashing. Does anyone know what this means or how I can fix this?? I've already tried resetting my PRAM... thanks for your help.
    Ben

    yeah sorry about that I'm trying to delete this one now

  • At start up I get a white screen then eventually a blinking folder icon with a question mark in the middle

    Help!  As of today, my iMac will not boot up.  When I turn it on I get a blank white screen then, after about a minute, a blinking folder icon with a question mark in the middle.

    Find your original install disk, insert it and re-boot holding the "C" key during startup. It will take longer but should boot. Then you need to select Disk Utilityfrom the Menu Bar. Do a Repair Disk on your hard drive. When it finishes re-boot normally.

  • When I turn on my MacBook Pro I get a grey screen with a folder icon and a question mark. I can't the computer to boot up.

    What do I do when I power up the computer and get a grey screen with a folder icon and a question mark?

    vickyfromosseo wrote:
    What do I do when I power up the computer and get a grey screen with a folder icon and a question mark?
    Read this: A flashing question mark or globe appears when you start your Mac

  • On. Startup I get a flashing folder icon with a question mark

    My computer won,t start. After about 30 seconds I get a blinking folder icon with a question mark. I have never seen this before.

    There are four general causes of this issue:
    1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
    2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
    3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
    4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from its location.
    (101798)

  • 15" MacbWhite screen with a blinking file folder icon with a question mark on it.

    15" Macbook. When i power on all I get is white screen with a blinking file folder icon with a question mark on it.N

    You may have a bad hard drive.  The flashing folder with the ? indicates that the system cannot find your hard drive.  Use the installation disc that came with your machine.  Insert it into the disc drive and restart the machine holding down the "C" key .  When the restart shows the Apple screen you can release the C keyWhen the installation screen appears, click on the utilities button.  Does the left side of the disc utilities screen show your HD?  If not, then your HD is bad or it could be a loose connection. ifixit.com has a good tutorial on how to replace the HF in the Macbook.  Follow the instructions to remove your HD.  Reinstall your HD and boot up your machine to see if it recognizes your HD.  If it does't, you probably will need to replace your HD>
    Is your machine still under warranty?  If so, take it to your nearest Apple Store for repairs as the repairs will be covered under your warranty.  If you bought AppleCare when you bought your computer your warranty is for three years.  If you didn't buy the Apple Care, then your warranty is only good for one year from the date of purchase.

  • Flashing Folder icon with Question Mark

    While trying Garage Band, I saved a project 'the long way' so as to open it via the Media Browser. Big mistake. Enter rainbow ball of ****.
    I tried to force quit because all I was hearing was a grinding away like 'crickets' says my daughter. Could be the Hard Drive.
    Now I shut it down and when I reboot, it gives me nothing but a gray screen with ? in a flashing folder icon.
    Help!
    Using 10.6.5, possibly 10.6.6. (Whichever one came before the Apple App Store application.)
    There is 70 Gig left available in a Drive that I believe is 384G. 300 something, I recall.
    This is a late 2006 Macbook, with the RAM maxed out..

    That folder with the question mark icon means that the MacBook can't find the boot directory. That can either mean it can't find the hard drive or the hard drive data is somehow corrupted.
    Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    Once it has finished booting and you are at the Install screen launch Disk Utility from the Utilities menu. Is your Hard Drive in the list on the left?
    If it is then select the First Aid Tab run Repair Disk and if that repairs any problems run it again until the green OK appears and then run Repair Permissions.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • Flashing folder icon with question mark in the middle of the folder

    LLashing folder icon with a question mark in middle of folder on startup

    Click here and follow the instructions.
    (121672)

  • Folder with Question Mark, to Apple Icon, to Kernel Screen at Startup.

    At startup Folder with Question Mark, Followed all steps to resolve it to no avail, I try to re-install Snow Leopard and Apple Icon with Grey screen appears, then Kernel screen.
    I cannot get past the Kernel screen.  No options to click anything, like system preferences or anything. I have a Macbook, with Snow Leopard.  Any help would be much appreciated.
    I tried Pram Reset and everything.

    Hey, thanks for the quick reply Mende.
    I tried that, it goes to the apple icon, however after about 10 seconds of the apple it goes straight to the Kernel screen.  It doesn't give me the options of opening anything. Infact it doesn't even have a mouse curser.
    If I hold "option" it gives me the option of choosing only the "Leopard DVD" but that's it and then it goes to the Kernel Screen
    Again, thanks for the taking the time to help me out.

  • Folder with Question Mark Icon--hard drive kaput?

    Hello,
    I know there's extensive info on this occurring at startup but I wanted to ask anyone a couple of specifics. 
    1). My imac is old.  It's from 2007 and while I've enjoyed it etc., I understand that it's time has "probably come".
    2). No and this is my bad; I've not backed it up.  Luckily, there honestly isn't a ton of irreplaceable stuff on it so in worst case scenario it's not a disaster.  It's more of a nuisance. 
    3). I used OSX Leopard. 
    So here's the meat and potatoes.   Whether its coincidental or causal, I can't say but after I upgraded my iPhone to iOS7, I started to get a couple of "can't connect to iTunes" errors and then suddenly my imac shut down and when I tried to restart, I'd get the grey screen with the ? folder. 
    I'm not a techie but I tried the gamut of troubleshooting fixes.   In short,
    1) I tried rebooting after unplugging peripherals.
    2). I tried rebooting while holding the Option key. 
    3). I tried inserting the OSX install disc and restarting while holding down C.  The computer merely ejected the disc.
    4). I tried resetting PRAM
    On all attempts, the folder icon reappeared.  I cannot get any kind of disk utilities tools to open.  I cannot get past the folder icon. 
    I went to the Genius Bar this AM.  The techie ran a diagnostic and concluded that my hard drive was dead and that he cold not help me anymore because the machine was too old.  He couldn't/wouldn't give me any details presumably because apple has no interest in servicing/dealing with an old machine. All he would say to me is try an authorized reseller. 
    My experiences with Genius Bar are routinely unpleasant so I can't tell if this guy was truthful. 
    My questions:
    1). Is there another fix I can attempt to get the imac to reboot?  If I can get one reboot, I'll go immediately back up everything. 
    2). Does this sound like a hard drive death?
    3). Are my data lost forever?  
    Thanks!

    I tried rebooting while holding the Option key.
    If the startup disk is not available from the Startup Manager window, that's an indication that the disk has failed 
    Genius Bar was most likely correct.

Maybe you are looking for

  • How can I pass arguments from one MIDlet to another MIDlet

    Hi everybody ! Can anybody help me in knowing that how can I pass the parameters from one MIDlets to another one in same application. I am devloping a application in which I am using more than two MIDlet and I want to transfer Parameter from one MIDl

  • Need help setting up a shared /Library/Fonts folder for font sharing

    Hi, I have a problem setting up a shared /Library/Fonts folder on my OSX 10.5.5 server that gets automounted on the OSX 10.5.x clients. While I managed to get the folder to show up automatically under /Network/Library/Fonts on the clients, the fonts

  • Can't Drag and Drop in Home Sharing

    I just enabled home sharing between my desktop mac and my macbook pro. Can see all music (from the desktop) and playlists, but cannot drag and drop individual songs or playlists between the two. Any advice on this? Also, if I import music library wil

  • How do you call scripts in subfolders using ODT 11.1.0.5.10 beta?

    Hello, I'm trying to create a script that calls several other scripts. The scripts I want to call are in a subfolder. Does anyone know the syntax I can use to call them? Structure: Providers +---Create All Script.sql +---Create +-------InstallOracleA

  • Building error. I'm missing libhx509.so.3[SOLVED]

    I been trying to build Firefox 3.1b2 I get this same error after an hour of building: convert: error while loading shared libraries: libhx509.so.3: cannot open shared object file: No such file or directory I don't have that version and am not sure on