AppleScript 和 SuperCard

问题描述 投票:0回答:1

以下脚本有效

tell application "System Events"
  set XXX to (list disks)
  if "Samsung_T1" is in XXX then
    tell application "SuperCard"
      beep
      --send mouseUp to cd button "Samsung_T1"
    end tell
  end if
end tell

但是下一个没有

tell application "System Events"
  set XXX to (list disks)
  if "Samsung_T1" is in XXX then
    tell application "SuperCard"
      beep
      send mouseUp to cd button "Samsung_T1"
    end tell
  end if
end tell

为什么?

我尝试使用全局变量更改它,但没有成功。

applescript
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.