sobota, 24 listopada 2012

Wyślij SMS z Imessages i uruchamiaj polecenia z AppleScript Apps !


Jeśli kt posiada Mac i Ios

     To właśnie może sobie sterować Mac za pomocą SMS wysyłanych z iMessages na ios
Co trzeba zrobić ustawić w Mac w ustawieniach wiadomości odebranych aktywować funkcję  uruchomić skrypty apple. I to wszystko poniższy skrypt wysłany do Mac, ściszy głośność, zrobi zdjęcie i przywróci głośność !


script:
using terms from application "Messages"
 on message received theMessage from theBuddy for theChat
  
  if (theMessage begins with "/") then
   
   if theMessage begins with "Photo" then
    beep 3
   else
    set volume 0
    
    tell application "Photo Booth"
     
     activate
     
    end tell
    
    tell application "System Events"
     
     tell process "Photo Booth"
      
      delay 3
      tell application "Finder"
       set visible of process "Photo Booth" to false
      end tell
      tell menu bar 1
       
       tell menu bar item "File"
        
        tell menu "File"
         
         click menu item "Take Photo"
         
        end tell
        
       end tell
       
      end tell
      
     end tell
    end tell
    delay 5
    tell application "Photo Booth"
     quit
    end tell
    set volume 3
   end if
   
  end if
  
 end message received
 
end using terms from


Jeśli macie synchronizacje katalogu z DROPBOX to już macie zdjęcie na iphonie lub ipadzie
Przyda się teraz znajomość skryptów i już możemy robić cuda !

Brak komentarzy:

Prześlij komentarz