I wouldn't give up so quickly, at least not if you're not using QuicKeys 
for anything else. AppleScript's file handling is really messy—there are 
NeXTStep paths (Macintosh HD:some:folder:), UNIX paths (/some/folder), 
"files" created by `file "Macintosh HD:some:NeXT:path:"` (these sometimes 
appear automatically from NeXT path strings, maybe always), "POSIX files" 
created by `POSIX file "/some/unix/path"`, and aliases created from either 
type of "file", except when they can't be (i.e. AppleScript throws weird 
errors and won't convert, at least not directly).

I would try, among a number of things, trying to convert between these 
formats with bastardized lines like

set end of all_paths to (file (path to this_path as text) as alias)

or several variants thereof. I *think* you want to be passing QS "aliases", 
indeed in general you want aliases AFAICT. Incidentally to turn an alias 
into text, you can't say "path to", you just say `set aliasPath to (alias 
as text)`, or `(POSIX path of file (alias as text))` if you want the POSIX 
path. On the other hand "file"s *can't* be converted to text, you get an 
error if you try—you have to say "path to". Welcome to the WTF world of 
AppleScript.

On Monday, July 30, 2012 1:26:30 PM UTC-4, Christopher Harwood wrote:
>
> AppleScript cannot find files inside the DT database when their paths are 
> changed to aliases.  So, no luck there.
>
> QuickKeys is happy to run the script with the errors remaining, so I've 
> emulated the behavior of QS by blacklisting DEVONthink from the QS trigger 
> and whitelisting DEVONthink on an identical QK trigger.  All's well.  It 
> would be nice to find a Quicksilver-only solution, but I have not had any 
> luck getting working aliases anywhere within the script (or a few variants).
>
> On Saturday, June 16, 2012 1:43:22 PM UTC-5, Jon Stovell wrote:
>>
>> Right now your script tells QS to open paths (i.e. strings of text) 
>> rather than files or aliases. AppleScript Editor is being a bit forgiving 
>> of your error, whereas QS is more strict when it runs a script. Change your 
>> script so that all_paths gets populated with aliases instead of paths, and 
>> it should work.
>>
>

-- You received this message because you are subscribed to the Google Groups 
Quicksilver group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send 
email to [email protected]. For more options, 
visit this group at 
https://groups.google.com/d/forum/blacktree-quicksilver?hl=en

Reply via email to