MacCast Forum: Is it possible to start my Mac with Skype contact list hidden? - MacCast Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Is it possible to start my Mac with Skype contact list hidden?

#1 User is offline   vladcampos Icon

  • Mac Geek In Training
  • Icon
  • Group: Members
  • Posts: 22
  • Joined: 11-December 05
  • Location:Brazil

Posted 28 July 2007 - 08:38 PM

Hi, can someone help me with this?

Though Skype is selected as "Hide" in my Login Items, the contact list appears on the desktop every time I start my Mac. I want Skype to launch when I start the computer, but I don't want the contact list showing in my desktop. I tried Skype preferences but didn't find anything there. Is is possible to change this with some OS X trick?
0

#2 User is online   Graham Icon

  • Mac Geek God
  • Icon
  • Group: Members
  • Posts: 3,020
  • Joined: 10-April 05
  • Twitter:grahamgilbert
  • Gender:Male
  • Location:London, UK

Posted 29 July 2007 - 02:27 AM

You could make an applescript that runs when you log in and closes the window.
0

#3 User is online   Graham Icon

  • Mac Geek God
  • Icon
  • Group: Members
  • Posts: 3,020
  • Joined: 10-April 05
  • Twitter:grahamgilbert
  • Gender:Male
  • Location:London, UK

Posted 29 July 2007 - 03:13 AM

Ok, I got bored so I wrote it myself.

Take Skype out of your startup items, since this script starts it for you. You'll need to edit it to have your Skype username in there for the name of the window (the degenerategoat part). Put the script in Script Editor and save it as an application somewhere and then put that in your startup items. Remember to keep the TM symbol in there correctly in the window title.

activate application "Skype"
tell application "System Events"
	repeat
		set theApps to name of every process
		if theApps contains "Skype" then exit repeat
	end repeat
end tell

tell application "Skype"
	repeat
		set theWindows to name of every window
		if theWindows contains "Skype™ - degenerategoat" then exit repeat
		
	end repeat
	close window "Skype™ - degenerategoat"
end tell

0

#4 User is offline   vladcampos Icon

  • Mac Geek In Training
  • Icon
  • Group: Members
  • Posts: 22
  • Joined: 11-December 05
  • Location:Brazil

Posted 29 July 2007 - 09:21 AM

View PostGraham, on Jul 29 2007, 11:13 AM, said:

Ok, I got bored so I wrote it myself.


Waw! Thanks a lot! I'll try it right now!

This post has been edited by vladcampos: 29 July 2007 - 09:21 AM

0

#5 User is online   Graham Icon

  • Mac Geek God
  • Icon
  • Group: Members
  • Posts: 3,020
  • Joined: 10-April 05
  • Twitter:grahamgilbert
  • Gender:Male
  • Location:London, UK

Posted 01 August 2007 - 06:35 AM

Did it work ok for you then?
0

#6 User is offline   falvesjr Icon

  • New Mac Geek
  • Icon
  • Group: Members
  • Posts: 1
  • Joined: 06-April 09
  • Gender:Male
  • Location:Johnston, IA

Post icon  Posted 06 April 2009 - 11:32 AM

I know it's been two years since this thread was active, but since Skype still hasn't fixed this issue, I've come up with a pretty good solution. Inspired by Graham's code, I wrote this:

activate application "Skype"
tell application "System Events"
   repeat
	  set theApps to name of every process
	  if theApps contains "Skype" then exit repeat
   end repeat
   tell application "Finder"
	  set visible of process "Skype" to false
   end tell
end tell

I think this is a better solution because it actually hides the whole app, not just a window - like if you had checked the Hide box in the Login Items panel - except that this works for Skype or any app that doesn't obey the system's hide setting. To make it work with another app, just replace the word "Skype" in the code above with the "nameOfAnotherApp". Obviously, you should do this editing in Script Editor, and when you're done, save the script as an Application Bundle. The reason for that is to take this tweak to the next level... Once the script is saved as an app bundle, right click/control click on the app you just created and select Show Package Contents. From there, open the Contents folder and you'll see that there's a file called Info.plist in there. Double click this file and it will open with the Property List Editor, if you have it installed, or if not, it should open with TextEdit. Next, if you're using the Property List Editor, add to the file a Key of "NSBGOnly" with a Value of "1" (no quotes on either). If the file opened with TextEdit, add this text to the file:

<key>NSBGOnly</key>
<string>1</string>

In either case, remember to save the file when you're done! So, what's this all about? Well, this will make it so that there's no bouncing dock icon for the launcher, only for the app being launched, as usual. So by adding one of these launchers to the Login Items instead of Skype, or whatever app you want, you can launch the desired app, invisibly, into it's hidden state - just like the system does for conforming apps...

Enjoy!

-f

This post has been edited by falvesjr: 06 April 2009 - 01:59 PM

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users