Applescript/Automator/Desktop Challenge

Discussion in 'Mac Apps and Mac App Store' started by Snipeye, Apr 30, 2009.

  1. Snipeye macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #1
    I have 3 separate... things... right now that I would like to implement into a single automator program. It will require a fourth part, that I haven't/don't have the slightest clue how to writ(t)e(n). I will upload the (very badly coded) files here, but first, let me tell you what I want it to do.

    1. On the first login of the day, do this:

    2. Go to http://apod.nasa.gov/apod/

    3. "click" on the image, get to the larger image.

    4. Check to see if it is taller than it is wide, and if it is, rotate it 90º (any direction)

    5. Check the resolution to see if it is within 100 pixels of 1050x1680. (it can be bigger, I just don't want it to be too small)

    6. If all the requirements are met, set the image as my desktop background.

    I currently can, on the first login of the day, get the image, download it, set it as my desktop. I have been (badly) writing some applescript to first check if it needs to be rotated, then do so. I don't have/haven't started on the last part, check the resolution. Is this even possible to do? I use an applescript to start the automator on the first login, the automator sets the desktop, etc. Files are here:

    http://www.freewebs.com/eleorastorage/applications.dmg

    INCLUDES:

    Applescript (in progress) to rotate the image. I also tried to set as desktop from there, that needs to be cleaned up.

    Applescript to check to see if it is first login, and if it is, run automator app

    The automator application to set the apod as desktop

    RULES:

    Do whatever you want, so long as it works - I don't care what I have to download, etc. Good Luck!
     
  2. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #2
    Instead of having it check the resolution, why not just make it resize the image to be the resolution you want?
     
  3. Snipeye thread starter macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #3
    Because then if it's too small, the resolution will look crappy. That's the whole purpose of the resolution check.
     
  4. Snipeye thread starter macrumors newbie

    Snipeye

    Joined:
    Sep 29, 2008
    #4
    I just "got" what you were saying, my first post has been modified.
     

Share This Page