Blog Archives
365SportTV window position
applehelpwriter.com
The 365SportTV app for Mac leaves a great deal to be desired. As anyone who’s used it has no doubt discovered, basic functionality is missing. Whoever knocked up the Mac version of the app for them has clearly never used Xcode before…
Of the many frustrations with this app, the only one I’ve been able to solve without completely re-writing it (365SportTV people: I’d be happy to give you a kind price…;) ) is moving the position of the window. That’s good because it is particularly annoying if you’re watching it on a large external monitor and the image is stuck where it doesn’t make best use of your screen.
Of the many frustrations with this app, the only one I’ve been able to solve without completely re-writing it (365SportTV people: I’d be happy to give you a kind price…;) ) is moving the position of the window. That’s good because it is particularly annoying if you’re watching it on a large external monitor and the image is stuck where it doesn’t make best use of your screen.
To move the window, launch the AppleScript Editor (just type Apples
in Spotlight or Launchpad) and paste in the following code:
tell application "System Events"
tell application process "365SportTV"
activate
set position of front window to {100, 50}
end tell
end tell
Fire up 365SportTV app, get your match going and then switch back to AS and click the green ‘Run’ button.
You can play with those two numbers near the end to suit your own screen. The first number is the number of pixels from the left, the second number is the number of pixels from the top.
Hope this helps. 🙂
Related Posts:
getting to grips with AppleScript
FastTasks – free utility from Applehelpwriter
move selection
It should be a simple thing to select a few files and sling them into your chosen folder. But OS X requires that you have to first open a Finder window, select the destination, then go all the way back to the location of the files you want to move and drag them in.
Wouldn’t it be much simpler if you could just select the files you want to move first, then choose the location without all the kerfuffle? Sure it would!
🙂
If you agree, then this is the script for you. I use it to move screenshots (of which I take a lot) from the Desktop to whatever location I want to store them in with a simple hotkey command (set up in Services or via FastScripts), control-command-M (‘M’ for move, of course!).
--start
tell application "Finder"
try
get selection
if selection is not equal to {} then
move selection to (choose folder)
else
display dialog "Nothing selected to move!" buttons {"OK"} default button "OK" with icon 2
end if
on error
set selection to {}
end try
end tell
--eof
🙂
Featured Picture: cul-de-sac by ~MichalTokarczuk