OSX Mavericks automate change of multiple folder icons with JPG images within the same folder

Discussion in 'Programming' started by Dud3m@n, Dec 18, 2014.

  1. Dud3m@n

    Dud3m@n New Member

    Joined:
    Dec 18, 2014
    Messages:
    4
    Likes Received:
    0
    Hi everyone,

    I have been searching high and low through various mac forums and have been somewhat unsuccessful in reaching my goal. What I'm trying to achieve is have an automated process on my iMac (Mid 2010 - Core i3 - 16Gig RAM - Mavericks 10.9.5) which will change the folder icon with the JPG located in that same folder. This process is to also be looped, meaning to scan all sub-folders and if a JPG is present to use it for that same named corresponding folder. All files and folders in question located on a ReadyNas Duo V2 with guest access and full R W X permissions.[​IMG]

    From the above screenshot, you see what I'm trying to achieve. For now I have got a couple scripts (found online) which allow me to retrieve movie.xml and Cover information online and save these in their respective folders. Now that Covers are downloaded as JPG files named as the movie folder. I would hope that there is automated process which can assist at changing multiple folder icons.

    Script Below
    tell application "FastIcns"

    activate

    end tell



    tell application "Finder"

    open file "folder.jpg" using (path to application "FastIcns")

    end tell



    delay 1



    tell application "Preview"

    tell application "System Events"

    keystroke "a" usingcommand down-- select all

    keystroke "c" usingcommand down-- copy

    keystroke "w" usingcommand down-- close window

    end tell

    end tell





    delay 1





    tell application "Finder"

    activate

    tell application "System Events"

    keystroke "i" usingcommand down-- open info



    -- set focus on icon image

    tell process "Finder"

    set img to (image 1 of scroll area 1 of front window)

    set focused of img to true

    tell application "Preview"

    tell application "System Events"

    end tell

    delay 1

    end tell



    keystroke "v" usingcommand down-- insert image

    keystroke "w" usingcommand down-- close window

    end tell

    end tell

    end tell


    Any help or guidance would be greatly appreciated.



    Thank you in advance. Have a great day all

    Dud3m@n
     
    Dud3m@n, Dec 18, 2014
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. dcfretwell

    Batch convert jpg to graytone jpg's

    dcfretwell, Jul 27, 2011, in forum: Automator
    Replies:
    1
    Views:
    933
    Kaveman
    Jul 28, 2011
  2. Ron
    Replies:
    2
    Views:
    295
    erilar
    Oct 7, 2009
  3. Bunny

    Converting pict.jpg to jfif.jpg

    Bunny, Jul 15, 2003, in forum: Graphics
    Replies:
    5
    Views:
    428
    bwest3
    Aug 2, 2003
  4. Bunny
    Replies:
    5
    Views:
    415
    bwest3
    Aug 2, 2003
  5. Ian McCall
    Replies:
    5
    Views:
    492
    Chris Ridd
    Apr 28, 2007
  6. RichardB3

    Photos duplicated? Both .jpg and .JPG copies.

    RichardB3, Aug 18, 2013, in forum: Mac Applications
    Replies:
    21
    Views:
    815
    Kaveman
    Aug 20, 2013
  7. RecordPlayer
    Replies:
    0
    Views:
    357
    RecordPlayer
    Dec 10, 2014
  8. Dud3m@n
    Replies:
    0
    Views:
    558
    Dud3m@n
    Dec 18, 2014
Loading...