One useful thing is to try to remove the delays in the script. This makes it faster, and has never caused problems for me on Mountain Lion.
»Lucas Garron On Thu, Apr 11, 2013 at 7:13 AM, David Rees <[email protected]> wrote: > Sorry, should have listed that I also tried the following for those two > lines. Still nothing was happening. > > on open files theFiles > set filePath to POSIX path of item 1 of theFiles > > Now, both variations are working. Very strange. I think I perhaps forgot > to restart Quicksilver to get the new script signature (maybe I tried a > Force Rescan instead). I updated http://qsapp.com/wiki/AppleScripts to > have the install instructions and to clearer on the need to restart > (install instructions had been moved to the authoring page). > > I also added the script to wiki at > http://qsapp.com/wiki/Select_File_In_Dialog. > > d > > > On Wednesday, April 10, 2013 9:20:12 PM UTC-4, Jon Stovell wrote: > >> You've got an "on open" handler inside the "using terms from" block. Try >> changing it to an "on open file" handler, as described on the wiki athttp:// >> qsapp.com/wiki/**AppleScript_Actions<http://qsapp.com/wiki/AppleScript_Actions> >> >> On 2013-04-10, at 8:43 PM, David Rees <[email protected]> wrote: >> >> > 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. > > > -- 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.
