Apply Mac Os X Finder colour label to downloaded files?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
meemorize
Newbie
Newbie
Posts: 13
Joined: April 12th, 2009, 5:43 am

Apply Mac Os X Finder colour label to downloaded files?

Post 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.
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

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

Post 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)
meemorize
Newbie
Newbie
Posts: 13
Joined: April 12th, 2009, 5:43 am

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

Post 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?
Last edited by meemorize on April 17th, 2010, 9:29 pm, edited 1 time in total.
dukevim
Newbie
Newbie
Posts: 16
Joined: August 1st, 2009, 9:32 am

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

Post 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
meemorize
Newbie
Newbie
Posts: 13
Joined: April 12th, 2009, 5:43 am

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

Post 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.
Post Reply