I'm trying to get this working with QS 1.0 on 10.8.2. Can someone tell me
what am I missing?
Thanks,
dave
using terms from application "Quicksilver"
on get direct types
return {"NSFilenamesPboardType"}
end get direct types
on open theFile
set filePath to POSIX path of theFile
tell application "System Events"
set theApplication to application processes whose frontmost is true
set target to item 1 of theApplication
set target to a reference to front window of target
tell target to keystroke "g" using {command down, shift down} -- Activate
goto field
delay 0.1
if ((count target's sheets) > 0) then set target to front sheet of target
-- Open panels use a sheet
tell target
tell sheet 1
try
set value of text field 1 to filePath
delay 0.5
click button "Go"
on error theError -- Carbon apps don't support setting the field directly,
so type out the path.
keystroke filePath
delay 1
keystroke return
end try
end tell
--
end tell
end tell
end open
end using terms from
--
You received this message because you are subscribed to the Google Groups
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/blacktree-quicksilver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.