Tag Info

New answers tagged

0

I don't think it's possible, I'm not sure Terminal understands how to handle it. Try this, swapping Terminal to Safari. Works on Safari, errors on terminal, even if you specify a tab number… as it doesn't seem to grok 'current tab' either As a test, this works for Safari tell application "Safari" tell front window set myTab to ...


0

You can try something like: -- Example elements tell application "System Events" to tell process "Finder" set uiElements to (get UI elements) end tell set uiTextList to {} repeat with uiE in uiElements try set uiText to uiE as text set end of uiTextList to uiText on error errMsg set {TID, text item delimiters} to {text ...


0

Try this way: set the textFile to ((path to desktop) as text) & "filename.txt" open for access file the textFile with write permission write ("Whatever you want to write" & return) to file the textFile starting at eof close access file the textFile


0

I tested with an example script and work for me when I tell the service is available in Firefox. I used this fake script to test: #!/bin/bash echo $1 > testfile.txt What I did is the following: Save this automator service on ~/Library/Services. I called it Service Test. Then on System Preferences → Keyboard → Shortcuts → Services assign a ...



Top 50 recent answers are included