Automator - Can it subtract?

Discussion in 'Mac Apps and Mac App Store' started by reclusivemonkey, Feb 18, 2009.

  1. reclusivemonkey macrumors 6502

    reclusivemonkey

    Joined:
    Jun 2, 2008
    Location:
    Sowerby Bridge, West Yorkshire, UK
    #1
    Hello Everyone,

    I tried searching the forums, and google but didn't really find anything.

    I am trying to create a fairly simple (IMHO) Automator Workflow; I want to get my disk space from df -l and create a png from Google charts API to stick on my desktop via Geektool. However I can't seem to work out how to do a simple

    Code:
    100-Disk Space Used=Disk Space Free
    
    via Automator. I'm thinking it will be easier just to shell script it and run it via cron.

    Anyone got any ideas where I should be looking in Automator?
     
  2. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #2
    That's not really what Automator's designed to do. You're right, it would be far easier as a shell script, so why not just do that? Automator isn't really going to accomplish that.

    jW
     
  3. reclusivemonkey thread starter macrumors 6502

    reclusivemonkey

    Joined:
    Jun 2, 2008
    Location:
    Sowerby Bridge, West Yorkshire, UK
    #3
    Done; it was a lot easier with a shell script.

    I would of thought anything that deal with variables would allow you to do basic arithmetic with them. At least I learned something about Automator on the way.
     

Share This Page