Mac Expert - help required - iCal view problem - days shifted - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old Jan 24th, 2007, 04:19 PM   #1
Full Citizen
 
Zoiks's Avatar
 
Join Date: Sep 2005
Location: Ottawa, ON
Posts: 355
Mac Expert - help required - iCal view problem - days shifted

Hey Folks,

Hope everyone is doing well. heh heh... uh.... I did something pretty stupid, and I'm hoping someone can help me out.

I downloaded and ran the script located here.
--> http://www.macosxhints.com/article.p...61210231039985

The site tells me to install a plist file into my ~/Library/LaunchAgents folder (I'm assuming that this means the root Library folder, not the one with my name.)

Here is the text:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.ANYNAMEHERE.fixicalview</string>
<key>OnDemand</key>
<true/>
<key>Program</key>
<string>/usr/bin/osascript</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/osascript</string>
<string>-e</string>
<string>tell application "System Events" to set isiCalOpen to count (every process whose creator type is "wrbt")
if (isiCalOpen is 1) then tell application "iCal" to quit
do shell script "defaults write com.apple.ical \"first day of week\" -int " &amp; ((((weekday of (current date)) as integer) + 3) mod 7)
delay 2
tell application "iCal" to activate</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>0</integer>
<key>Minute</key>
<integer>1</integer>
</dict>
</dict>
</plist>


This was supposed to change the view of my weekly view in iCal such that the current day always appears in the middle of the calendar.

However, now the calendar monthly view (my Primary) is changing it's view as well. Monthly view is my primary view, and had I known the current day would get shifted to the middle of the view in monthly view, I would not have installed this key.

In an effort to fix the issue, I deleted (and removed from the trashbin) the file that I used. It did not work. Now my computer has permenently changed the monthly view such that the first day of the week is seen is Friday, then Saturday, then Sunday etc.
(I believe it's stuck here since I removed the file)

Today I decided to try to fix the issue again by installing the key again into ~/Library/LaunchAgents and rebooting the machine, hopefully returning Wednesday to the middle, then deleting itg again, but everytime I try to add the plist life to the LaunchAgents folder, my mac tells me I can't alter the folder therefore cannot add any files into it.


Please, calling all Mac experts, how can I get my system back to the way I want it?

Cheers!
__________________
iPhone 5s 32GB
iPad 3 64GB
iMac (Late 2012) 27" / 2.8 Ghz / 32GB RAM / 3TB Fusion / 10.9.2
Macbook Air (Mid 2013) 13" / 1.3Ghz / 4GB RAM / 256GB SSD / 10.9.2
MacMini (Late 2009) 2.2Ghz / 2GB RAM / 160 GB HDD / 10.9.2
Zoiks is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old Jan 27th, 2007, 02:06 PM   #2
Honourable Citizen
 
Chealion's Avatar
 
Join Date: Jan 2001
Location: Calgary
Posts: 7,069
Send a message via ICQ to Chealion Send a message via AIM to Chealion Send a message via MSN to Chealion
~/Library is actually the Library in your home folder. ~ denotes your home folder.

The crux is the command "do shell script "defaults write com.apple.ical \"first day of week\" -int " &amp; ((((weekday of (current date)) as integer) + 3) mod 7)"

The AppleScript was put in the LaunchAgent folder so as to set the first day of the week each day at 12:01 AM.

To fix this you're going to want to open Terminal.app and enter the following command:
defaults delete com.apple.ical "first day of week"

By default, the first day of week setting isn't in the plist file, but if you want to set the first day of the week to a Monday you can use:
defaults write com.apple.ical "first day of week" -int 1

Where the number 0 = Sunday, 6 = Saturday. The script would add 3 so the day 3 days before today would be on the left side leaving it in the centre.

I hope that helps. It worked fine on iCal in 10.4.8 for me.
__________________
I still remember Macnutt.
Chealion is offline   Reply With Quote
Old Jan 27th, 2007, 03:57 PM   #3
Full Citizen
 
Zoiks's Avatar
 
Join Date: Sep 2005
Location: Ottawa, ON
Posts: 355
Thanks for the reply. I actually ended up fixing it myself. I adjusted the "+3" to "+5" so that for the next day it would have Sunday returned to the left side of the screen, once that was done, I deleted the script from my LaunchAgents folder. Seems to have worked.

Cheers!
__________________
iPhone 5s 32GB
iPad 3 64GB
iMac (Late 2012) 27" / 2.8 Ghz / 32GB RAM / 3TB Fusion / 10.9.2
Macbook Air (Mid 2013) 13" / 1.3Ghz / 4GB RAM / 256GB SSD / 10.9.2
MacMini (Late 2009) 2.2Ghz / 2GB RAM / 160 GB HDD / 10.9.2
Zoiks is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thoughts on the Intel Apple pdksh Anything Mac 26 May 7th, 2008 04:05 PM
A Plethora of Mac mini websites gmark2000 Anything Mac 3 Jul 4th, 2006 01:12 PM
iCal printing problem Hoyd Mac, iPhone, iPad and iPod Help & Troubleshooting 1 Dec 12th, 2005 04:35 PM
Canon A70 Mac USB transfer problem MacAndy Mac, iPhone, iPad and iPod Help & Troubleshooting 14 Nov 30th, 2005 04:04 PM
Videocamming problem Mac to PC Peter Mac, iPhone, iPad and iPod Help & Troubleshooting 4 Nov 23rd, 2005 08:59 PM


All times are GMT -4. The time now is 03:00 AM.



Copyright 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!