Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applescript with indirect types, 3rd pane does not respond to input #1916

Closed
brumm opened this issue Aug 25, 2014 · 3 comments
Closed

Applescript with indirect types, 3rd pane does not respond to input #1916

brumm opened this issue Aug 25, 2014 · 3 comments

Comments

@brumm
Copy link

@brumm brumm commented Aug 25, 2014

This Applescript is supposed to download a URL into a specific folder.
Unfortunately, the 3rd pane remains empty and does not get filled with files and folders and does not respond to Keypresses (Pressed D to search for Desktop)

using terms from application "Quicksilver"
    on process text theUrl with theFolder
        do shell script "wget -P " & theFolder & " " & theUrl
    end process text

    on get argument count
        return 2
    end get argument count

    on get direct types
        return {"Apple URL pasteboard type"}
    end get direct types

    on get indirect types
        return {"NSFilenamesPboardType", "NSStringPboardType"}
    end get indirect types

end using terms from

screen shot 2014-08-25 at 12 52 24

@pjrobertson
Copy link
Member

@pjrobertson pjrobertson commented Aug 25, 2014

I assume you’re running with the latest pre-release?

I’ve found out what the problem was, and it should be fixed by PR #1917

On 25 Awst 2014, at 11:57, Philipp Brumm notifications@github.com wrote:

This Applescript is supposed to download a URL into a specific folder.
Unfortunately, the 3rd pane remains empty and does not get filled with files and folders and does not respond to Keypresses (Pressed D to search for Desktop)

using terms from application "Quicksilver"
on process text theUrl with theFolder
do shell script "wget -P " & theFolder & " " & theUrl
end process text

on get argument count
    return 2
end get argument count

on get direct types
    return {"Apple URL pasteboard type"}
end get direct types

on get indirect types
    return {"NSFilenamesPboardType", "NSStringPboardType"}
end get indirect types

end using terms from


Reply to this email directly or view it on GitHub.

@brumm
Copy link
Author

@brumm brumm commented Aug 25, 2014

Yeah, using 1.2.0 (400D) here. Thank you for the fix - being able to use UTIs sounds awesome!

skurfer added a commit that referenced this issue Aug 28, 2014
Use UTIs for AppleScript actions Fixes #1916
@skurfer
Copy link
Member

@skurfer skurfer commented Aug 28, 2014

For what it’s worth, to get the script working, I had to do this instead.

set dest to POSIX path of theFolder
do shell script "/usr/local/bin/wget -P " & dest & " " & theUrl

My system disk is named “Hard Disk” and the script tries to save files to Hard/filename otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants