• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Changing Safari's Homepage with a little intellegence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing Safari's Homepage with a little intellegence


  • Subject: Changing Safari's Homepage with a little intellegence
  • From: Jeffrey Madson <email@hidden>
  • Date: Thu, 22 Sep 2016 14:17:06 -0500

Hello Everyone,

Thanks for taking a peek at this. I'm trying to write a script that will change the current users Safari Home Page. I can do this using a terminal command in Applescript: do shell script "defaults write /Users/"current user"/Library/Preferences/com.apple.Safari HomePage http://www.apple.com but I have two problems. 1) I can only get this to work if I know who the "current user" is and I will never know so I need something that will change whoever is currently logged in. 2) I need to build in a little intellegence because I only want the address changed to http://www.apple.com if it's pointing at http://www.google.com (these are only examples). If it's pointing at anything besideshttp://www.google.com I don't want to change it. Can this be done in AppleScript and is there a better way then inserting the shell script? 

Thanks so much for any suggestions!

Jeff

--

____________________________________________________________


Jeffrey Madson | Endpoint Management | LSC Communications
800 Midway Road | Menasha, WI 54952

Office: 920.751.7942 | Cell: 920.915.8619

email@hidden
http://www.rrd.com

________________________________________________________________


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Changing Safari's Homepage with a little intellegence
      • From: Andrew Oliver <email@hidden>
    • Re: Changing Safari's Homepage with a little intellegence
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: Save attachment in Outlook 2016 / Exchange
  • Next by Date: Re: Changing Safari's Homepage with a little intellegence
  • Previous by thread: Re: Save attachment in Outlook 2016 / Exchange
  • Next by thread: Re: Changing Safari's Homepage with a little intellegence
  • Index(es):
    • Date
    • Thread