0
所以,我试图用AppleScript创建一个应用程序,但是当我将应用程序移动到其他文件夹并运行它时,它总是会查看它之前的文件夹。我如何在移动应用程序时检测AppleScript?
display dialog "Kindle Fire HDX 7" Utility Mac
Please select the action you want to do.
Make sure a Terminal window is OPENED!!!"
buttons {"Connected Devices", "Reboot", "More..."} default button 3
set the button_pressed to the button returned of the result
if the button_pressed is "Connected Devices" then
-- action for 1st button goes here
tell application "Terminal"
VVVV就在这里是错误
if (count of windows) is not 0 then
do script "cd ~/Desktop/ADB-GUI/Kindle Fire HDX 7" Utility.app/Contents/Resources/minerboyadb/ && ./adb devices"
^^^^就在这里是错误
end if
else if the button_pressed is "" then
-- action for 2nd button goes here
else
-- action for 3rd button goes here
end if
是有办法解决这一问题?或者有可能使用Xcode制作AppleScript应用程序? (这可能会更好地工作。)