I’m getting slightly embarrassed how much I need your help at times but I feel ASOC is poor as well :lol:. Anyway…
...
log valmytempdir -- a string: /var/folders/m2/h4n6xbmx70xdz1hz9gx9yvfc0000gn/T/com.RichardBirkett.DialogMaker/
tell application "Finder"
log (posix file valmytempdir)-- Finder got an error: AppleEvent handler failed. (error -10000)
log "if"
...
This fails, does not log “if” as I stated, but when I run the following in AS Editor:
POSIX file "/var/folders/m2/h4n6xbmx70xdz1hz9gx9yvfc0000gn/T/com.RichardBirkett.DialogMaker/"
it returns a perfect colon separated file path. And I tried
log (posix file (valmytempdir as string))
but it didn’t help at all!
Is this a stupid mistake, a Lion bug or what people call ‘finder scripting’ in a depressing sense?