¿Existe alguna manera de utilizar métodos AppleScript definidos en otros AppleScripts que hagan referencia al AppleScript original con algo similar a la importación (por ejemplo, en PHP)?¿Importar métodos de AppleScript en otro AppleScript?
me escribió una méthode para establecer el estado de Skype y el estado de ánimo de texto:
on setSkypeStatus(status, mood_text)
tell application "System Events"
set skypeRunning to count (every process whose name is "Skype")
if skypeRunning > 0 then --only set status if skype is running
tell application "Skype"
set myStatus to "SET USERSTATUS " & status
set myMood to "SET PROFILE MOOD_TEXT " & mood_text
send command myStatus script name "AppleScript"
send command myMood script name "AppleScript"
return skypeRunning
end tell
else
return skypeRunning
end if
end tell
end setSkypeStatus
ahora estoy en busca de algo así como skype_methods.scpt importación. ¿Hay tal funcionalidad? No puedo hacer nada relacionado con Google.