Page 1 of 1

Apply Mac Os X Finder colour label to downloaded files?

Posted: April 17th, 2010, 4:24 am
by meemorize
Hi,
first off, here are the required info:

Version: 0.5.0 Final
OS: Mac Os X 10.6.3 Snow Leopard
Install-type: OSX .app
Skin (if applicable): Plush
Firewall Software: None
Are you using IPV6? No
Is the issue reproducible? N/A


Basically I would like to apply an orange colour label to all my downloads to mark them as not having been watched, once I watch them I will then remove this orange label manually.

If anyone know where to look for such a script or how to code one up I would really appreciate your help.

Thanks for reading,
M.

Re: Apply Mac Os X Finder colour label to downloaded files?

Posted: April 17th, 2010, 7:13 pm
by rAf
In AppleScript, you could try something like:

Code: Select all

tell application "Finder" set label index of (file/folder) to (value between 0 and 7)

Re: Apply Mac Os X Finder colour label to downloaded files?

Posted: April 17th, 2010, 7:31 pm
by meemorize
thanks for your help,
i will gladly try this out but how do I 'save' this script (what file format) and where do I put the saved file so it can be used in sabnzbd?

thanks again,
M.

update
So i have tried a couple of things, none of them worked unfortunately. Perhaps you have an idea of how to fix this..

1) I setup the script folder and in Sabnzbd the scripts now show up in the dropdown list.
2) I created 2 files, 1 called 'mark-as-watched.applescript' and 1 called 'mark-as-watched.scpt'. The former being the source and the latter being the script itself.
The source of the script is as follows:
tell application "Finder"
set the label index to 3
end tell
I also tried this script to no avail:
tell application "Finder"
set the label index of folder to 3
end tell
3) When downloading I set the script to my new .scpt (I also tried using the .applescript) file but this is the error I am getting from sabnzbd: Cannot run script /Users/Meemorize/Scripts/mark-as-watched.scpt

Do you have any ideas perhaps?

Re: Apply Mac Os X Finder colour label to downloaded files?

Posted: April 21st, 2010, 12:34 pm
by dukevim
Hi I do this with an App called Hazel - it works really well - I use it colour downloads by age, remove duplicates, tag files etc...

http://osx.iusethis.com/app/hazel

Re: Apply Mac Os X Finder colour label to downloaded files?

Posted: April 22nd, 2010, 5:54 am
by meemorize
dukevim wrote: Hi I do this with an App called Hazel - it works really well - I use it colour downloads by age, remove duplicates, tag files etc...

http://osx.iusethis.com/app/hazel
Dude! That app is insanely awesome.
Not only does it make this stuff easy it will come in so handy for all kinds of folder/file organizing.

Thanks for pointing it out to me.