• Skip to main content
  • Skip to primary sidebar

Ravi Shankar

Tweaking Apps

  • Swift
  • Tech Tips

Mac

Turn on/off Wifi using Keyboard shortcut

June 6, 2021 By Ravi Shankar

Mac users can turn on/off Wifi using option available as part of the Menu bar.

Wifi Menu bar option

Add quick action in Automator app

Launch Automator app on your mac and choose Quick Action.

Automator – Quick Action

Choose action as “Run Shell Script” then set Workflow receives to “no input” and set it to run for for any application and select an image for your action.

Then under the run script window add the following script.

set_wifi_on_or_off() {
  networksetup -getairportpower en${n} | grep ": ${1}";
  if test $? -eq 0;
  then
    echo WiFi interface found: en${n};
    eval "networksetup -setairportpower en${n} ${2}"
    return 0;
  fi
  return 1;
}

for n in $(seq 0 10);
do
  if set_wifi_on_or_off "On" "off"; then break; fi;
  if set_wifi_on_or_off "Off" "on"; then break; fi;
done

You can test the above script using “Run” option and check if Wifi settings turned On or Off based on the current state. Save this quick action by providing a name as “Wifi”

Assign a keyboard shortcut for quick action

Launch Keyboard preferences using System preferences and navigate to Shortcuts tab.

Keyboard Preferences

The newly added Wifi quick action will be available under Services. Now assign a keyboard shortcut for this action.

Note :- Make sure to select 3 letters or more keyboard combination for your shortcut. Sometimes other apps might be using the same set of key combination and this would prevent launching the Automator action.

References

Filed Under: Automator, Mac, Tips Tagged With: Automator, Keyboard Shortcut, Mac

How to know the size of the folders in iCloud

February 15, 2021 By Ravi Shankar

If you are using Apple iCloud, the folder sizes are not shown by default when they are not downloaded to your Mac. Doing the following will show all the folder size whether they are downloaded or present only in iCloud.

  1. Using Finder, Access the iCloud drive.
  2. Navigate to folder in iCloud drive. As you can see in the below screenshot the folders size are not shown as they available in Cloud.
  1. Click View menu option and select “Show View Options” from the menu list.
  1. Tick the checbox with the label “Calculate all sizes”

Now the Finder should show all the folder size even if they are present in Cloud only.

Filed Under: Mac Tagged With: iCloud, Mac

Errors were encountered while preparing your device

February 14, 2021 By Ravi Shankar

One of the common error that occurs in Xcode is “Error were encounted while preparing your device for development. Please check the Devices and Simulators Window.” I have noticed this error after Mac OS update or Xcode app update Trying the following

  1. Restart your device,
  2. Close Xcode and try re-running the Xcode project.

Sometimes after restarting the device you might see the following “iPhone is Busy: Making iPhone ready for development”. Give some time for the device after a restart, this might fix the problem.

If you have come across these during any other scenarios, please share them in the comments section. Thank you.

Filed Under: iPhone, Mac, Xcode Tagged With: Mac, Mac OS

Add line numbers in Word 2013, Word 2010 and Word 2007

September 27, 2015 By Ravi Shankar Leave a Comment

Microsoft Word users can add line numbers to a word document using the options available as part of Page Layout menu. In this tutorial we will see the steps for adding line number in Word 2013 and Word 2011 for Mac.

How to add line numbers in Word 2007, Word 2010, Word 2013 and Word 2011 for Mac

Word 2007 Word 2010 and Word 2013

Word 2010 allows users to add line numbers to a word document. This can be done using the Page Layout menu option. For example if you have the following text in your document and you want insert line numbers for each line then you use this feature.

image

To add line numbers for above paragraph, from Home menu click the Page Layout menu option and then navigate to Page Setup section.

Page Layout Menu in Word 2013 and Word 2010

In the Page Layout section, click the drop down arrow next to Line Numbers menu option. This would display the following menu options.

Line numbers in Word 2013 and Word 2010

Now select Continuous from the list available menus and this would insert the line numbers in the Word document as shown below

Document with line numbers in Word 2010 and Word 2013

The other line numbers options includes

  • Restart Each Page – To restart line numbers after each page.
  • Restart Each Section – To restart line numbers after each section.
  • Suppress for Current Paragraph – to remove line numbers for the selected paragraph.

Word 2011 for Mac

Step 1: Open the document for which you want to add line number.

Word 2011 for Mac Layout Menu

Step 2: Click Layout menu and navigate to Text Layout section.

Step 3: Now click the Line Numbers option under Text Layout. This should display the following drop down list.

Word 2011 for Mac Continuous numbers

Step 4: Select Continuous from the Line numbers drop down list to add line numbers. You can also customise Line numbers by use other options in the list.

Show line numbers in document

If you are looking for advanced line number options then click More Line Numbering.

More line numbers option

Display of line number in status bar

If you just want to find out the current line number while editing a document then you can use line number option available as part of status bar for this purpose.

Word 2007, Word 2010 and Word 2013

Microsoft Word 2007 and Word 2010 provides option to display the line numbers in a word document. This would be a useful feature when you want to restrict your content based on the number of lines written in the document. If the status bar does not show the line numbers, then right click on the Status bar and select Line number.

Display line number in status bar in Word 2013, Word 2010 and Word 2007

After selecting Line Number option in the Customize Status Bar context menu, the status bar would display the line number as shown below.

Show line numbers in Word status bar

Word 2011 for Mac

Word 2011 for Mac does not support the display of line number in status bar. This option is available in Window’s version of Microsoft Word but not in Mac OS X.

Also See: How to auto populate random sentences in Word 2010

Filed Under: Apple, Mac, MS Office, Office 2010, Office 2013, Word 2007, Word 2010, Word 2013 Tagged With: Apple, Line numbers, Mac, Page Layout, Show Line numbers, Status Bar, Word 2011 for Mac

How to reduce size of document with images in Microsoft Word

October 12, 2014 By Ravi Shankar Leave a Comment

Microsoft Word provides users with the option to reduce the file size of the document with images. In this tutorial, we will see the technique of reducing the file size in Word 2013 and Word 2011 for Mac.

Reduce images size in Word 2013

Word 2013 users can use the Compress Pictures option available as part of Format Picture to compress the images in the document.

Step 1: Click the Format menu in Microsoft Word 2013. Please note the Format menu will be available only after selecting the image on the document.

image

Step 2: In the Format menu, navigate to Adjust section and click the Compress Pictures option. This should display the following Compress Pictures window.

image

Now you can choose the desired option under Compression options and Target Output. Let say you want to only share the document with other users using email, then go for “E-mail (96 ppi): minimize document size for sharing”.

Step 3: After selecting the required options, click Ok button to apply the changes to images.

Compress images in Word 2011 for Mac

Step 1: Select the image in the document and click Format Picture menu.

201401021315.jpg

Step 2: Under Format Picture menu, click the Compress Option. This should display the following Reduce File Size screen.

201401021317.jpg

Step 3: Now choose the Picture Quality drop down to apply appropriate picture quality as per your needs. You can apply the changes to all the pictures in the file or just Selected pictures

Step 4: Click OK button to apply the changes to the document.


Filed Under: Apple, Mac, MS Office, Office 2013, Word 2013 Tagged With: Apple, compress images, document file size, Mac, Office 2013, reduce file size, Word 2011 for Mac, Word 2013

How to change bluetooth device name of iPhone/iPad/Mac

October 23, 2013 By Ravi Shankar Leave a Comment

Change bluetooth name for iPhone, iPad and Macbook Pro.

In this tutorial we are going to cover the steps required to change the device name that appears while discovering bluetooth enabled Apple devices. For example when you are trying to pair iPhone with MacBookPro, the Set up Bluetooth Device screen on Macbook Pro would display the following

Bluetooth Set up Wizard

Where “Ravi Shankar’s iPhone” is the name of my iPhone. Similarly on iPhone under Bluetooth settings, you should find the MacBook Pro’s name.

Bluetooth Paired device name on iPhone

How to change bluetooth device name for iPhone

Step 1: Tap the Settings icon on the Home screen.

Step 2: Under Settings, Tap General options.

General Settings on iPhone

Step 3: Navigate to About option under General Settings.

General Settings on iPhone

Step 4: In the About screen Tap Name option. This should provide an option to change the name of your iPhone.

201310231603.jpg   Change name on iPhone  

How to change bluetooth device name for iPad

Follow the same steps mentioned for iPhone (Step 1 to 4) to reach the Name screen on your iPad.

Change iPad bluetooth name

How to change bluetooth name for Macbook Pro

Step 1: Click the Apple icon and select System Preferences from the menu list

System Preferences on Macbook Pro

Step 2: In System Preferences screen, navigate to Internet & Wireless section and click Sharing option.

Sharing option on Mackbook Pro

Step 3: Click Edit button under Computer Name section and provide your preferred name.

Computer name on Macbook Pro

Change bluetooth computer name on Macbook Pro

Step 4: Click OK button to confirm and save the changes.

Also See:

1. Turn On/Off bluetooth on iPad

2. Rename bluetooth devices on Macbook Pro

3. What is Control Center in iOS 7

Filed Under: Apple, iPad, iPhone, Mac, Mac OS X Tagged With: Apple, Bluetooth, device name, iPad, iphone, Mac

How to password protect workbook in Excel Mac 2011

September 29, 2011 By Ravi Shankar Leave a Comment

Excel for Mac 2011 users can password protect the workbook using the option provided as part of the File menu. Click the File menu and select Passwords from the displayed menu list.

201109292051.jpg

This would display the following File Passwords window with different password option.

201109292054.jpg

You can set a password for opening the excel workbook using the Password to open field. Similarly to set a password for modifying the content in the excel workbook, you can use the Password to modify. If you want to make the workbook as readonly then mark the check box labelled as Read-only recommended.

Filed Under: Excel, Mac, Technical Tagged With: excel 2011, Mac, Password, Protect, Workbook

Primary Sidebar

TwitterLinkedin

Recent Posts

  • How to block keywords in Jio broadband
  • How to disable opening an app automatically at login in Mac
  • How to set preferred Wifi network on Mac
  • Attribute Unavailable: Estimated section warning before iOS 11.0
  • How to recover Firefox password from Time Machine backup

Pages

  • About
  • Privacy Policy
  • Terms and Conditions

Copyright 2022 © rshankar.com

Terms and Conditions - Privacy Policy