Get JPG save as source folder icon ?

I posed this in scripting but might be more suitable in this forum.
Hello Everyone,
I would like to use a script to set the source folder icon by selecting an image.
after much searching i found this. (but it's to long of GUI process)
This one worked perfectly!
--CODE (for AppleScript Studio script)
set srcpath to POSIX path of (choose file with prompt "Choose source image file.")
set dstpath to POSIX path of (choose folder with prompt "Choose target folder.")
--set dstpath to dstpath's text 1 thru -2 -- remove last slash if necessary.
setIcon(srcpath, dstpath)
on setIcon(srcpath, dstpath)
set nsimg to load image srcpath
set nswks to call method "sharedWorkspace" of class "NSWorkspace"
set r to call method "setIcon:forFile:options:" of nswks with parameters {nsimg, dstpath, 0}
delete nsimg
return r
end setIcon
--END OF CODE
I don't want to interact with it. Just a simple CTRL click (Contextual Menu Item).
Currently have no Idea where to go with this. Any Thought?

If you're open to the idea of using GUI scripting, you might try creating an Automator workflow comprised of a single action: *Run AppleScript* (from the Automator library).
Replace the pre-populated text in the Run AppleScript action's text area with the script below:
*on run {input, parameters}*
*tell application "Finder"*
*set theSelection to selection as alias*
*set theImage to choose file with prompt "Choose source image file." without invisibles*
*tell application "Preview" to activate*
*tell application "Preview" to open theImage*
*tell application "System Events"*
*tell process "Preview"*
*keystroke "c" using command down*
*end tell*
*tell application "Preview" to quit*
*delay 1 -- adjust as needed*
*set theFolder to theSelection*
*tell application "Finder"*
activate
*reveal theFolder*
*end tell*
*tell process "Finder"*
*keystroke "i" using command down*
*keystroke tab*
*keystroke "v" using command down*
*keystroke "w" using command down*
*delay 1 -- adjust as needed*
*keystroke "w" using command down*
*end tell*
*end tell*
*end tell*
*return input*
*end run*
From Automator's File menu choose Save As Plug-in > Plug-in for: Finder, and give it a name such as "Set Folder Image."
To invoke the action, right-click or Control-click on a desired source folder and select the "Set Folder Image" plug-in from the contextual menu, under Automator. When the Choose-a-File dialog appears, navigate to the desired image file, select it, and press Choose.
Note that as GUI scripting is used here, you'll need to make sure that under System Preferences > Universal Access, "Enable access for assistive devices" is checked.
If you find that the script stalls before Preview quits, or if the two Finder windows which are meant to open fail to close before the workflow completes, try increasing the delay times where indicated.
The plug-in worked for me in Tiger; untested in Leopard, your results may vary... Good luck.

Similar Messages

  • Compiler warning: Source folder "server" does not exist and will be ignored

    Hi,
    i am using NWDS 7.0 SP16. I have a development component type "J2EE Sever Library", which uses a java component. Everything works fine, except during the build i get a warning "Warning: Source folder "server" does not exist and will be ignored.".
    Then i created the folder named "server" manually, but the build finished again with warning, now saying:
    "Warning: Source folder "server" exists but is empty and will be ignored."
    I created a dummy-file in the directory "server" and now the compilation is fine, no warnings.
    I like to get my build free of any warnings, so what's wrong here? I found no documentation to create the folder/file manually.
    Any help is appreciated.
    Regards,
    Thomas

    Hi Raman,
    I am also getting the same error . i moved my srm transports from DEV to QA and replicated the datasources into BI . and then i moved the BW transports from dev to QA.
    when i check the datasource it is pointing to D60 instead of Q60 . when i check the transformations getting the same error :
    source system dosen't exist.
    can you please let me know how you resolved this issue. your reply will be  highly appreciated.
    Regards,
    Sri

  • Windows Folder icon instead of Officejet 6500a Plus E710n icon in Devices and Printers

    Can anyone help me to get the OfficeJet 6500a Plus e710n printer icon to display properly in Devices and Printers?
    I recently reinstalled Windows 8.1.  However, when I installed my printer, instead of the printer icon appearing in Devices and Printers I get a generic yellow Windows folder icon.  The Fax icon is OK, just the printer icon is wrong.
    If I double click on the icon, I get a mostly blank page with a message near the top saying: "Updated information is available about your device.  Click here to download or learn more."  If I click on the notice, a dropdown menu appears with "Download updated information" or "Learn more".  If I choose downloaded update information, a new printer window appears which is mostly blank except for a message at the centre of the window which says, "No tasks are available on this page"  The Learn more option just gives me info about updating drivers.
    The printer icon on the Start menu is fine.
    I've used HP Print and Scan Doctor to uninstall and reinstall my printer but this hasn't helped.  The program found a problem with the printer driver and fixed it, but that hasn't changed the icon either.
    I am running Windows 8.1 Pro 64bit fully up to date, and used the latest full version of the HP installation program for the printer (not the basic version) and HP Print and Scan Doctor v4.6.
    This question was solved.
    View Solution.

    Hi,
    Try following these steps and let me know if that may help:
    From the control Panel select Network and internet and open the Network and Sharing Center.
    Click on Change Advanced Sharing Center.
    Ensure that Network Discovery is trned on but uncheck the box next to "Turn on automatic setup of network connected devices".
    From devices and printer right click the printer and select Remove Device, repeat the for the Fax icon.
    Note: if no such option exists for the printer follow the next steps.
    Right click the background area and select Device Mahager.
    Remove any instance of the printer from Imaging Devices, Printers, Print Queues, Multifunction Adaptors, Other Devices (if a such exists).
    Once you are done the printer should no longer appear under Devices and Printers...
    Open teh HP Officejet 6500 E710 software, select Connect a new Printer and check for any differnce.
    Hope that helps,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Process Multiple Files:"source folder is empty"

    When i try to select a particular  folder I get the message,"the source folder is empty".
    The folder does have images in it,having checked in preview and file info and  double clicking on it.
    It seems only to be affecting this particular folder.
    Any ideas people?
    Thanks in advance!

    The issue can be due to:
    1) Space in the folder name.
    2) Some specific permissions or file types etc.
    I would suggest creating a new folder and copy your images into it and try.
    ALso in case you still have an issue please share the exact location name or screenshot of the settings you doing in PMF dialog box.
    -Garry

  • Auto assign folder icon as folder.jpg

    back in the dark ages (when i used widows), i had all my music separated into different folder for each album. In each folder i would put the cover, calling it folder.jpg, and windows would assign the folder icon as that jpg.
    now, how can i assign each folder's folder.jpg as the icon for each folder, so that in Finder the folder icon is the cover?
    naturally, this would need to be done in an automated manner, as i have thousands of albums.

    I've played around with this a little (seemed like a fun task to work on).
    I'm not sure what the best way to give these instructions is, so if you need more help with any step, please let me know.
    WARNING: I've tested this as best I can, but there may be issues. I advise making a backup first and doing a test run.
    1) Install osxutils (I used macports to do this)
    2) Open Automator and create a new workflow with the following items in order:
    Ask for Finder items select Type: Folders
    Get folder Contents with Repeat for sub folders selected
    Filter Finder Items with File Type is JPEG
    Add Thumbnail Icon to Image Files
    Run Shell Script
    In the shell script you want to pass the input as arguments and paste the following into the text window
    for f in $@
    do
    dir=`echo $f | sed 's/\(.)/./\1/'`
    /opt/local/bin/seticon $f $dir
    done
    3) Save as application and run.
    Some things to note:
    You may need to change the location of seticon in the shell script if you install osxutils using a method other than macports.
    This script adds thumbnails to your jpeg files, this seems like a harmeless side effect to me, but you should know that it is happening.
    If you want to remove an icon, get info on it, select the icon and press the backspace key.

  • How to get a pic as folder icon

    Working with OSX Mavericks 10.9.1. Can't update b/c I'm not an admin.
    We know how to make a new folder, and then change its icon by going into the Get Info panel, and dragging an object on the desktop into that upper section.
    When we do this with a jpeg, what happens is that the icon of the new folder becomes the default icon for a jpeg. Is there any way to change the folder icon into the thumbnail of that specific jpeg?

    Not that I've ever found. The typical way with OS X is the Get Info method. However, I've never heard of dragging an object on the desktop into the icon field. Normally, you copy the icon of one Get Info box to the other. The problem with Photoshop CC and later (CC 2014), is that there is no longer a resource fork with the files it saves, so the icon in Get Info is always generic. PS 6 and earlier have an icon that can be copied from one object to another.
    So anyway, the correct way is to have the Get Info box open for each item; the source icon, and the folder you want to apply it to. Click the icon you want so it has a blue highlight box around it. Press Command+C. Go to the folder's Get Info box and highlight its icon field. Press Command+V. Only that folder will show the new icon as it's folder picture. It shouldn't affect anything else.

  • Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?  I open gmail. I want to save an email to one of my folders. I position my cursor over the appropriate Folder icon or by choice, to th

    Is there anyone there? I hope there is someone who can you understand this problem and have the common sense to respond?
    I open gmail. I want to save an email to one of my folders.
    I position my cursor over the appropriate Folder icon or by choice, to the Trash.
    The friendly finger pointing cursor icon changes to an arrow icon.
    The hand icon allows me flawless access to opening and/or moving emails.
    The arrow, however does not open the link.
    On the Google menu bar the cursor hand with finger opens the links to Everett (my name), Search, Images, Maps and Play.
    When I attempt to open the remaining links in the menu bar (YouTube, News, Gmail, Drive, Calendar and More) the arrow icon replaces the hand. The arrow icon does not work. It will not activate these links.  Nor does it open email messages in the Inbox.
    Usually I reset, even reboot Safire and sometimes the problem goes away, then reappears.
    Can you imagine if this condition should it happen to a tech savvy Google Support person? Perhaps one can share and make my problem go away.
    I am considering dropping Google as my mail source. Unfortunate!
    Everett Halvorsen
    [email protected]
    718.490.3824

    I have uninstalled my Access Connection, but this problem seems to persist. IBM technician have changed the wireless card of my T60, the first few days after it was changed was very fine, no problem at all. About a week later, the problem occured again, and it happened quite frequently after that occurence. Now i really have no idea what is the cause and how to solve it. Will be greatful if there is anyone that can help me.

  • Get an Error window, The source folder does not contain any supported camera raw files

    I am using CS2 and it would not open up my latest RAW files, I was getting a warning Could not complete your request because it is not the right kinds of document. So, I checked the Camera Raw Plug-in and it says Version 3.7. I see that my camera an Olympus E-20 is supported. But it is not opening the Raw files, the day before I took jpeg and they have opened. I will not trash my Adobe Photoshop CS2 because it was a royal pain to install and I don't know where the CD is.
    I installed the latest DNG Converter and when I try to open up the folder which has all the RAW images that didn't open in Adobe, I still get an Error window that says, "The source folder does not contain any supported camera raw files." Why? It says it supports my Olympus E-20. I actually have the E-20n, I don't think that is the problem. My RAW icons usually show up as small image thumbnails and this time they are gray icons only with the incorrect date under the icon. Is there another product I can use without spending money? These images I took in RAW were special and I don't want to lose them. Please help!
    Esther

    Hello, I was using only CS2 with my Olympus E-20n for 5 years, no problem. It just started acting up in RAW this year. I downloaded Picasa that same day and now it seems to be opening up all of my RAW files that didn't open the other day. So, I think Picasa installed a new plug-in adaption to CS2 because now all my RAW icons have a new logo on them, the same one that's in Picasa. Strange, but it works now and I am not complaining anymore. I love CS2 and the many ways I can adjust RAW files, so I am using it, Picasa is a sideline now that I can take a look at many thumbnails and it organized all my photo files by the year and folders. Amazing free software. I have probably 60,000 images in my computer and an external hard drive and Picasa picked them all up and made a library, cool.

  • Save pdf to folder as JPG fails

    I have completed the update process so I am running Yosemite and Aperture 3.6
    When I try to use the automator work flow that was installed with Aperture (Save pdf to folde as JPG) , I get an error message that "Retrieve Disk Item References encountered an error"
    The workflow will work from another user account and the similar workflow for saving PDF to folder as TIFF works just fine.  I have tried reinstalling the workflow from a backup but it still fails.  Any idea how to get this working back to normal?

    I got it fixed with 2 rounds of cache cleaning and pref file removal.  My computer thinks it is 4 in the afternoon and all the menus are in Swedish, but its all good!

  • Save PDF to folder as JPG not working....

    I can't figure out why all of a sudden Aperture book pages exported as JPG's aren't showing up anywhere. I did change the dpi setting to 300 and have successfully exported other books recently, but today I finished a book layout and wanted to export the pages as JPGs and they won't show up anywhere.
    Also, when I press "Run" in the Save PDF to folder as JPEG I do get an error at the "Move Finder Items" step, where it allows you to denote where the pages should be saved.
    I have tried deleting that step and reinserting the same one, but I get the same error over and over and can't figure out how to fix it.
    When I run the Print Book and Save PDF to folder as JPEG in Aperture, it will run thru the whole process but ultimately not save the pages anywhere, they just don't show up...
    Any idea what is happening and why?
    I am running Aperture 2.1.2...

    It actually goes thru the motions and appears to be working, but ultimately the pages are not actually created or saved anywhere. I have tried over and over, numerous things, but in the end there are no actual pages created... its weird. I specify exactly where to save the pages, and when its done, there is nothing there....
    Also, when I run the Play button on the "Save PDF to folder as JPEG" in automator, it encounters an error at the "Move Finder Items", the step where it would actually place or save the JPEGs to that location.... I can not seem to figure out what went wrong, as it did work before and I don't know what I could have done to cause an error...

  • When I am saving photos from a file, I cannot get the save path to go back to the default folder I want them in. Each save has to be done by going through the path to find the folder I'm saving to.

    I am saving photo files from my camera, a drop box etc. I used to be able to click "save as" and the folder I saved in before came up for saving the new image. Now, I have to start way back to the "Barb" folder - to "documents" "images, etc" back up to the folder I save these particular pictures in.
    How do I get the "save" to go to the last folder I used - in this particular session?
    Everytime you route me back to "educated guesses" I cannot find this particular problem

    Firefox 11+ versions have support via <b>browser.download.lastDir.savePerSite</b> pref to disable to disable the feature to remember the download directory based upon the URL.<br />
    The browser.download.lastDir.savePerSite pref doesn't exist by default (it is hidden).<br />
    Create a new <b>Boolean</b> pref with the name <b>browser.download.lastDir.savePerSite</b> and set the value to false.
    You may have the clear the "Site Preferences" via Clear Recent History to remove already stored data.
    *Tools > Options > Privacy : History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    See also:
    *[[/questions/887248?page=2#answer-318910]]
    * https://developer.mozilla.org/en/Preferences/browser.download.lastDir.savePerSite

  • 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.

  • How to get the SAVE Layout  ICON on ALV Grid display report

    Hi,
      I am using the standard ALV Layout, and I do not get the SAVE LAYOUT Icon on the Menubar, where I could save the report Layout.I am using the layout routine as,
    FORM layout_build USING   u_lf_layout TYPE slis_layout_alv.
      u_lf_layout-box_fieldname       = 'SELK'.  " Checkbox
      u_lf_layout-zebra               =  'X'.
      u_lf_layout-colwidth_optimize   =  'X'.
      u_lf_layout-confirmation_prompt =  'X'.
      u_lf_layout-get_selinfos        =  'X'.
      u_lf_layout-f2code              =  '&ETA' .
      u_lf_layout-detail_titlebar     =  'Delivery Due List'.
      u_lf_layout-key_hotspot         =  'X'.
      u_lf_layout-info_fieldname      =  'COL'.
    ENDFORM.                    " layout_build
    Is there anything that I am missing. Please suggest.Many thanks for your help.
    Regards,
    Mira

    Hi,
    i think you've forgotten param. <b>i_save</b>
      x_save = 'X'.
      gs_variant-report     = sy-repid.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_STRUCTURE_NAME = 'ZTAB01'
                IS_VARIANT       = gs_variant
                IS_layout        = lay
                I_SAVE           = x_save
           TABLES
                T_OUTTAB         = gridtab
           EXCEPTIONS
                OTHERS           = 1.
    regards Andreas

  • How do I get the video box not to show when I open FF4. The one with the FF icon pointing to a folder icon.

    Upon downloading FF4 on my iMAC, I get a new box that I have to click on to open FF. It has a FF logo with an arrow pointing to a folder icon.
    This did not happen when I upgraded on my PC running Vista

    You have a corrupted Firefox 3.6.8 user agent;
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.0.2 GTB7.1 (.NET CLR 3.5.30729)
    See [[Finding your Firefox version]] and [[Web sites or add-ons incorrectly report incompatible browser]]
    See also http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default
    Check the <b>general.useragent</b> prefs on the <b>about:config</b> page.<br />
    You can open the <i>about:config</i> page via the location bar, just like you open a website.
    Filter: <b>general.useragent</b>
    If any <i>general.useragent</i> prefs are bold (user set) then right-click that pref and choose <i>Reset</i>.

  • 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.

Maybe you are looking for

  • My new Ipod Nano isn't recognized by my computer or by ITunes. What could be some reasons?

    My new Ipod Nano 7 does not come up as a drive on my computer. The computer clunks to acknowledge a new device is attached but it is not shown in explorer. ITunes DOES open as it should, but it gives me a message "An IPod has been detected but it cou

  • Drag and Drop in UI5

    Hi Colleagues, We would like to use Drag-and-Drop features in our SAP UI5 Application similar to the following example: http://jsbin.com/qova/2/edit (in our use-case we would like to re-order the items in a list). The given example works only in IE 1

  • Using an interface as a type

    Hi Im reading someone elses code and theres something i dont understand. I read the sun trial on interfaces and see that an interface can be declared as a type by a class which implements said interface. Also that interfaces cannot be instantiated. I

  • Activity in PDF

    Is there a list of interactive possibilities in a PDF, that works in all kind of devices and Reader. F.e. different options don't work in the Preview app on a Mac but are working in the Adobe Reader on a Mac. The same with an iPad. So, who can tell m

  • Is there any way i can track my ipod?

    Is there any way i can track my ipod?