我有一个运行在本地主机上的ANGLE服务器,我想从AppleScrip调用它.场景是,我以Angular 列表的形式插入了一组tweet ID,它以本地主机的身份运行.现在,我在另一个浏览器中打开了相同的推文链接,现在我想阅读推文链接,获取推文ID,并调用Angular 服务器来 Select 相应的推文ID,然后单击提交按钮.推文ID始终是预定义的.
我可以读取推文链接并获取推文ID,但不能调用ANGLE服务器.你能推荐一下吗?
读取和获取推文ID的代码
display dialog "Name of the browser?" default answer "Safari"
set inp to text returned of result
global link1 -- declare y
set link1 to "" -- initialize y
tell application "System Events"
if inp is "Google Chrome" then
tell application "Google Chrome" to return URL of active tab of front window
else if inp is "Safari" then
tell the application "Safari" to set link to URL of front document
set teststring to "https://twitter.com/Jimmy_Wine/status/1090281915238834176"
set tweets to words of teststring -- convert string to list of words
set tweetid to the last item of tweets
return tweetid
else
return
end if
end tell
Angular 图形用户界面