open programs with applescript

后端 未结 6 608
刺人心
刺人心 2021-02-02 10:39

2 part question:

I\'m simply trying to run programs using applescript from the terminal, so I tried:

$ osascript tell application \"iTunes\" to activate
         


        
6条回答
  •  故里飘歌
    2021-02-02 11:44

    I'am new to script too.

    I am confused to so I scan an essay named AppleScript Language Guide and when I go through script commands items, I learn that if you want to activate an application in mac os with applescript editor you should type beneath code in your editor and then compile and run them! may this answer will help you, here's code:

    // applescript editor code    
    
    ----------    
    
    activate application "iTunes" line 1    
    
    ----------    
    
    tell application "iTunes" to activate line 2
    

提交回复
热议问题