0
votes
1answer
2k views

How can I set a static IP, gateway, net mask, and dns using terminal / applescript - OS X 10.7.5

I use my macbook at home and at work. At work I need to use a static IP, gateway, DNS and net mask. At home I use it in DHCP mode. Manually setting them every day really sucks. How can I set them ...
3
votes
3answers
1k views

Quotes within quotes applescript

I am doing an applescript that is supposed to set an command with quotes an varible. This is the code so far: set myString to "This is a "quoted" text." But an error occurs because applescript ...
2
votes
2answers
383 views

AppleScript to logoff Mac user after closing an application?

I've configured a local user account on an iMac (Lion) to immediately launch Firefox to a specific page after logging in – the page contains a survey to be completed by the user. This works fine. ...
0
votes
1answer
431 views

How to avoid password prompt when I “Put Back” a file from the trash, via AppleScript?

I accidentally moved over 4,000 files to the trash, and I want to move the files back to their original locations. While the Lion supports this feature (via the Finder's "Put Back" command), it will ...
1
vote
3answers
2k views

Shortcut for moving an email to another folder in Mail.app

How could I setup a keyboard shortcut for Mail.app in OSX Lion so an email in the inbox, which is still unread, when I use this shortcut is moved automatically to some other previously defined folder? ...
2
votes
1answer
807 views

How to open a new Firefox window with Terminal

I am running Firefox v10.0.1 with OS X Lion v10.7.3 From the Apple dock, you can right-click on Firefox icon and choose NEW and a new Firefox window will open. From terminal, I have tried open ...
5
votes
5answers
2k views

Apple Mail: Flag message from keyboard

One of the flags in Apple Mail can be applied to a message using Command-Shift-L. Is there a way to apply any other flag? I renamed one of the colors to TODO, and I set up a keyboard shortcut for ...
7
votes
1answer
635 views

OS X Lion Inverted Scrolling Automation Shortcut

As everyone will know (who has Mac OS X Lion), by default, scrolling is inverted to make it a bit like the iPhone. Problem: There is no way to have "normal scrolling" for a USB mouse, and ...
2
votes
1answer
430 views

OS X Lion: AppleScript unbearably slow for moving Mail messages

I've been using for years now the following applescript, triggered via iKey by an F12 keystroke: tell application "Mail" to move (get selection) to mailbox "Archive" I'm using it to move inbox ...
3
votes
5answers
7k views

Toggle “ask for password after screensaver/sleep” or the delay in 10.7 using terminal

There's an option in the preference panel to change the time the mac is able to be in sleep/screensaver before requiring a password to be unlocked again. I'm using OS X Lion 10.7. Is there any way ...