我在 /Volumes 中有一个文件夹操作设置,用于检测何时插入 USB。这是它的结构
on adding folder items to theFolder after receiving theNewItems
delay 1 -- ALLOW MULTIPLES TO BE ADDED BEFORE PROCESSING - OPTIONAL
try
set theFileContents to read "/Volumes/My_USB/Network.txt"
on error errstr
set theFileContents to false
end try
if theFileContents is false then
say "wrong USB"
else
say "right USB"
end if
end adding folder items to
除非屏幕保护程序(带有密码提示)启动,否则它可以正常工作。
当屏幕保护程序锁定并开启时,我怎样才能让它正常工作?
谢谢!