0
我刚开始使用苹果脚本,我想制作一个提示用户输入URL的应用程序。在此之后,应用程序会在Safari的新选项卡中打开给定的URL。这是我的,但它不工作。想要在Safari的新选项卡中打开用户生成的URL
tell me
activate
set s to display dialog "Which website do you want to open?" default answer "https://www."
end tell
tell application "System Events"
tell application "Safari" to activate
tell process "Safari"
click menu item "New Tab" of menu "File" of menu bar 1
end tell
end tell
tell application "Safari"
set URL of document 1 to "text returned of s"
end tell