Hi all I have no problem compiling this script in leopard but when I try it in snow leopard it no longer works. Can anybody shed some light on why this is.
The script editor doesn’t like the syntax of this line
find matching theQuery
Thanks
on run {input, parameters}
get input as list
set productSkus to input
tell application "Portfolio"
activate
set theQuery to "filename" & tab & "contains" & tab & (item 1 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 2 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 3 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 4 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 5 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 6 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 7 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 8 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 9 of productSkus) & return & "or" & tab & "filename" & tab & "contains" & tab & (item 10 of productSkus)
find matching theQuery
tell document 1
find matching theQuery
-- optionally sort the result - note sort is gallery based
tell gallery "Find Results" to sort by "Filename" order ascending
end tell
end tell
end run