Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Keep magicJack window hidden Apps
This is a fairly obvious hint, but it may help some of the Mac-owning magicJack users out there who are frustrated by the fact that the magicJack window pops open whenever you make or receive a call. To fix this, open AppleScript Editor and make this simple script:

tell application "Finder" to set visible of process "magicJack" to false

Save it to your /Library/Scripts folder. Next, create a cron entry (mine is set to run every five minutes) to run the script:
*/5       *       *       *       *     /usr/bin/osascript /Library/Scripts/minimize_magicjack.scpt
The cron job launches the AppleScript, which then hides the magicJack window.

[robg adds: I haven't tested this one. cron isn't the officially-supported OS X solution, but it still works. This ancient hint contains some basic information on how to use it.]
    •    
  • Currently 1.75 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (12 votes cast)
 
[13,400 views]  

Keep magicJack window hidden | 15 comments | Create New Account
Click here to return to the 'Keep magicJack window hidden' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Keep magicJack window hidden
Authored by: momerath on Jan 20, '10 08:04:59AM
Instead of loading a script off your disk (with which I can see many problems), try using /usr/bin/osascript -e 'tell application "Finder" to set visible of process "magicJack" to false' Frankly, though, I'm not sure that running this script every five minutes is a good solution.

[ Reply to This | # ]
Keep magicJack window hidden
Authored by: chris79 on Jan 20, '10 10:37:29AM
i use this to automatically launch MagicJack when i plug it in:

#!/bin/bash

# give it 5 sec to get started
/bin/sleep 5

# if the app isn't already running...
if ! (ps -r -axco command | grep splash) && ! (ps -r -axco command | grep mj_dev) && ! (ps -r -axco command | grep magicJack) ; then
	# and the right disk is mounted...
	if [ -e /Volumes/magicJack/.background.png ]; then
		# then start the app
		/usr/bin/open /Volumes/magicJack/Start\ magicJack.app
		# hide the application after 5 seconds
		/bin/sleep 5 && osascript -e 'tell application "System Events" to set visible of process "magicJack" to false'
	fi
fi

launchd XML (i use Lingon.app to set this):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>chris.MagicJack.StartOnMount</string>
	<key>ProgramArguments</key>
	<array>
		<string>/path/to/launchMagicJack.sh</string>
	</array>
	<key>StartOnMount</key>
	<true/>
</dict>
</plist>



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: jaek on Apr 10, '10 01:05:56PM

Hello chris79,
Sorry for being such a newb, but how do you use that language to hide the magicjack window? Are you using an application to compile it or just pasting it into an existing file, etc?
Thanks.



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: pete on Jan 20, '10 08:10:53AM

Hopefully my magicjack will arrive soon, and that I can put it in its own space and forget about it.



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: chrisfriend on Jan 20, '10 08:16:02AM

The app's window doesn't allow itself to be moved to a new space, and it steals focus every time the phone rings or is picked up. Moving it wouldn't help.



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: pete on Jan 20, '10 12:17:26PM

All is moot now. My magicjack arrived today, but being on a Mac and in Canada means I cannot register it with a Canadian number! Go figure. I can get any number in the US just about, but what good is that to me and anyone wanting to call me.

They said I'll have to set it up on a windows machine.

And here I am with a netbook that came with XP, but is now KarmicKoala Linux. I have no way of going back to XP!


Maybe a friend with a Windows thing can help me...



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: macnixer on Jan 22, '10 11:48:51PM

You do not need Win XP. When I got my MJ about 2 years back, I thought that is what it would be. But I went to the support site and they have a chat. Believe me their support is really great.



[ Reply to This | # ]
delete
Authored by: MacTripper on Jan 20, '10 08:14:22AM

wrong thread, delete

Edited on Jan 20, '10 08:16:17AM by MacTripper



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: asmeurer on Jan 20, '10 08:15:24AM

There has to be a way to do this better with launchd or something else that would only run it when it needs to be run.



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: pete on Jan 20, '10 08:20:00AM

When I get magicjack, I'll fumble with Lingon to try to make something of this... Anyone else know any better?

Or maybe I'll just run magicjack on the lappie...

Edited on Jan 20, '10 08:21:01AM by pete



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: chrisfriend on Jan 20, '10 08:18:56AM

This solution won't prevent the app from returning and stealing the focus when the phone is used. I've been looking (unsuccessfully) for a way to make the app run headless.

For now, the only solution I've found is to run the app as a different user logged into the GUI, which creates a terrific amount of overhead just to make a single app stop being annoying.



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: Mike Perry on Jan 20, '10 05:10:53PM
All is moot now. My magicjack arrived today, but being on a Mac and in Canada means I cannot register it with a Canadian number! Go figure. I can get any number in the US just about, but what good is that to me and anyone wanting to call me.
MagicJack works best for outgoing calls and for that being in Canada is no obstacle. Long distance is still toll-free. It works less well for incoming calls, particularly if it is your only phone. For MJ to work, you computer must be running and your Internet service up. That's why I take most calls with my per-minute cell phone service. If the call will be a long one, I call them back on MagicJack. I'd hoped to use my cell service and MagicJack with Google Voice but I stumbled on a hitch. Google Voice will certainly ring both numbers, but if you aren't running MagicJack, MJ instantly sends that call to voice mail, bypassing any other voice mail and any chance to take the call on a cell phone. There's an obvious fix for that, being able to turn of MagicJack's voice mail. But last time I checked, that all-too-obvious feature had been promised but not delivered. As a work around, Google Voice now only rings my cell phone, which pretty much defeats the purpose of having it. That said, I'm happy with it. It's cut about $30 off my monthly phone bill with no loss in usefulness. MJ even lets you set up an address that'll be supplied to 911 operators just like a landline phone.

[ Reply to This | # ]
Keep magicJack window hidden
Authored by: pete on Jan 21, '10 03:50:54PM

Ah well... mine is in the hands of Canada Post now, on its way back to Florida.

What is the point of having a magicjack number, if everyone calling me is forced to dial long distance. I was told I would have to set it up on a pc to get a Canadian number. Googling for it, I found a number of complaints about magicjack.

I am relatively happy with my cell phone, and will stick to that for now. I just have to leave it in one place here all the time. But how can anyone leave their iPhone? :)



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: macnixer on Jan 22, '10 11:46:44PM

Actually you can forward MJ incoming calls to your cell phone. I do that most of the time.



[ Reply to This | # ]
Keep magicJack window hidden
Authored by: mango on Nov 06, '10 03:57:20PM

There has got to be a better way. I am sort of jelous because there are plug and play programs for P.C that just solve this problem for you. I Dont even know how to use this code.

BTW I use Magic Jack and Skype in Canada. I live in T.O and have a T.O number. I am not sure why some people had a problem. normal Skype is also great. I use it for overseas calls and though I am new to Magic Jack my other Canadian friends have it and as long as you have a normal cell phone to lean on just in case, it should be fine.
But please the pop ups are enough to drive you mad! especially if you watch TV on your comp like we do.



[ Reply to This | # ]