Applescript on linux

Discussion in 'Mac Programming' started by applerocks123, Feb 6, 2012.

  1. applerocks123
    Expand Collapse
    macrumors member

    applerocks123

    Joined:
    Nov 7, 2010
    Location:
    seattle
    #1
    Im trying to run a script i made with apple script on my linux machine (ubuntu) and is there any program that will let me do that?
     
  2. foidulus
    Expand Collapse
    macrumors 6502a

    Joined:
    Jan 15, 2007
    #2
    Incredibly doubtful as Applescript is very much app specific, and none of those apps exist on Linux.

    You can run (a lot) of BASH/perl/ruby scripts on both Mac and Linux, but not Applescript.
     
  3. kainjow
    Expand Collapse
    Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    No, AppleScript is OS X only.

    What is your script doing? most likely you can find an alternative method as foidulus mentioned.
     
  4. applerocks123
    Expand Collapse
    thread starter macrumors member

    applerocks123

    Joined:
    Nov 7, 2010
    Location:
    seattle
    #4
    The script is Controlling applications like open safari ect...
     
  5. mobilehaathi
    Expand Collapse
    macrumors 604

    mobilehaathi

    Joined:
    Aug 19, 2008
    Location:
    The Anthropocene
    #5
    Safari on Ubuntu?:confused:
     
  6. Seek Truth
    Expand Collapse
    macrumors newbie

    Joined:
    Oct 17, 2015
    #6
    I think he means to open the browser and other equivalent apps, as I'm looking for the same thing.
     
  7. 556fmjoe
    Expand Collapse
    macrumors 65816

    556fmjoe

    Joined:
    Apr 19, 2014
    Location:
    USA
    #7
    I would take a look at shell scripts. What are you trying to do with it?
     
  8. superscape
    Expand Collapse
    macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #8
    Yup. I strongly doubt that you'll have any luck getting AppleScript to run on Linux. AppleScript uses AppleEvents (https://en.wikipedia.org/wiki/Apple_event) which are part of the Mac's OS - and not part of Linux's.

    Depending on what you're doing, you may have some success with bash shell scripts, or Python. Both are broadly similar on OS X and Linux - the small differences can catch you out though!
     
  9. ArtOfWarfare
    Expand Collapse
    macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #9
    If you share your script with us, we can give you more specific advise. As is, there's not much to be said that hasn't already been said.
     

Share This Page