Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Lua 电晕SDK错误“;“苹果事件超时”;_Lua_Coronasdk - Fatal编程技术网

Lua 电晕SDK错误“;“苹果事件超时”;

Lua 电晕SDK错误“;“苹果事件超时”;,lua,coronasdk,Lua,Coronasdk,我使用Lua Glider运行Corona SDK时 应用程序我收到类似“苹果事件超时”的错误信息 我正在使用Mac。 我在插件控制台中遇到以下错误 有人能帮我吗 这是一个apple事件错误,这意味着您不能执行更多代码,因为您的速度非常慢 例如,您的目标是让Finder复制一个大小为888 TB的文件夹。复制后,您希望将新文件夹重命名为“duplicate Hatty!”。代码如下: 在编辑器中打开此Scriplet: tell application "Finder" duplicate

我使用Lua Glider运行Corona SDK时 应用程序我收到类似“苹果事件超时”的错误信息 我正在使用Mac。 我在插件控制台中遇到以下错误

有人能帮我吗


这是一个apple事件错误,这意味着您不能执行更多代码,因为您的速度非常慢

例如,您的目标是让Finder复制一个大小为888 TB的文件夹。复制后,您希望将新文件夹重命名为“duplicate Hatty!”。代码如下:

在编辑器中打开此Scriplet:

tell application "Finder"
  duplicate alias "path:to:really BIG folder:"
  set name of result to "duplicate gotta hey!"
end tell
with timeout of (30 * 60) seconds
  tell application "Finder"
    duplicate alias "path:to:really BIG folder:"
    set name of result to "duplicate gotta hey!"
  end tell
end timeout
set aFolder to (choose folder with prompt "Choose a folder, please...")
查找者将收到命令:“复制!”AppleScript将等待响应:“完成,先生!”

如果AppleScript厌倦了等待答案,它将超时并抛出错误“AppleEvent timed out”。因此,“set name…”行不会被执行

实际上,正如1.9.1所述,AppleScript在2分钟后会感到疲劳。但是,可以使用以下语句防止这种情况发生:

在编辑器中打开此Scriplet:

tell application "Finder"
  duplicate alias "path:to:really BIG folder:"
  set name of result to "duplicate gotta hey!"
end tell
with timeout of (30 * 60) seconds
  tell application "Finder"
    duplicate alias "path:to:really BIG folder:"
    set name of result to "duplicate gotta hey!"
  end tell
end timeout
set aFolder to (choose folder with prompt "Choose a folder, please...")
现在,AppleScript将在30分钟后变得疲劳

请注意,只有当您针对某个进程(例如,查找器)时,才会发生此错误。但是,如果您使用以下代码

在编辑器中打开此Scriplet:

tell application "Finder"
  duplicate alias "path:to:really BIG folder:"
  set name of result to "duplicate gotta hey!"
end tell
with timeout of (30 * 60) seconds
  tell application "Finder"
    duplicate alias "path:to:really BIG folder:"
    set name of result to "duplicate gotta hey!"
  end tell
end timeout
set aFolder to (choose folder with prompt "Choose a folder, please...")

。。。如果你是一个犹豫不决的人,你可以等17天再选择一个文件夹,你不会收到超时错误。

你的Lua Glider是最新的1.9版,如果不是先更新的话。我使用的是java 1.6,java有什么问题吗..我使用的Lua Glider只有1.9版,是试用版。trail version@user1218135有问题吗