Finder event question - scripting bridge, appscript
Finder event question - scripting bridge, appscript
- Subject: Finder event question - scripting bridge, appscript
- From: Sung-Jin Lim <email@hidden>
- Date: Fri, 21 Jan 2011 04:20:27 +0000 (GMT)
Scripting bridge is not giving the correct answer (strangely machine dependent), so I tried ASTranslate program to see if I should use appscript.
It throws runtime error message like this one. Any insights?
tell application "Finder"
set theSelection to selection
repeat with theItem in theSelection
get currentView of window of folder of theItem
end repeat
end tell
#import "FNGlue/FNGlue.h"
FNApplication *finder = [FNApplication applicationWithName: @"Finder"];
FNReference *ref = [finder selection];
id result = [ref getItem];
Untranslated event 'coregetd'
Runtime Error:
Finder got an error: Can’t get currentView of Finder window id 19395. (-1728)
-- console log ---
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforgeappscript.astranslate[35474] Traceback (most recent call last):
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforge.appscript.astranslate[35474] File "eventformatter.pyc", line 83, in customSendProc
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforge.appscript.astranslate[35474] File "rubyrenderer.pyc", line 286, in renderCommand
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforge.appscript.astranslate[35474] File "rubyrenderer.pyc", line 256, in format
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforge.appscript.astranslate[35474] File "aem/aemreference.pyc", line 283, in AEM_resolve
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforge.appscript.astranslate[35474] RuntimeError: maximum recursion depth exceeded
1/20/11 8:19:11 PM [0x0-0x126025f].net.sourceforge.appscript.astranslate[35474] Traceback (most recent call last):
- Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden