Jump to content

Dud3m@n

Members
  • Content Count

    2
  • Joined

  • Last visited

About Dud3m@n

  • Rank
    InsanelyMac Protégé
  1. Hi everyone, I have 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's icon as it is dropped onto the Automator applet. The principle I had in mind is that, as the movie folder is dropped onto the applet, it will take a generic file called either folder.jpg or poster.jpg, then convert the image into an ICNS file and finally take the ICNS file and make it the folder's new icon. 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. I'm aware of the manual process which is to right click on folder and select get info, then simply drag the poster.icns file onto the folder in the top right of get info window. Really wish it could be automated. From the screenshot, you see what I'm trying to achieve. For now I have found 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. Any help or guidance would be greatly appreciated. If anybody is able to assist, I can post the AppleScript that I have started working on for further analysis. Ps if this post is in the wrong area, please advise, I'm a noob here. Thank you in advance. Have a great day all Dud3m@n iMac, OS X Mavericks (10.9.5)
  2. 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 a file called folder.JPG located in a movie folder. This process is to also be looped, meaning to scan all sub-folders and if a folder.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. 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. PS: I'm very new to the apple scripting world and have very limited knowledge. What I hope to accomplish with this is to have a script which acts as a movie manager which is integrated in Finder and not use a third party app. Thank you in advance. Have a great day all Dud3m@n
×