Hide/Unhide a calendar from an AppleScript program

Is there a way for an AppleScript program to hide/show a particular calendar in iCal V4.0.3?
There's a checkbox right next to the name of the calendar that does exactly what I want -- with the mouse. I'd like to control that checkbox from an AppleScript program.

My sincere apologies to the author, because I cannot remember where I got it, but this works:
tell application "System Events"
tell application process "iCal"
tell front window
--log "count of scroll areas=" & (count of scroll areas)
repeat with SA in scroll areas
tell SA
--log "count of outlines=" & (count of outlines)
repeat with OutL in outlines
tell OutL
--log "count of rows=" & (count of rows)
repeat with aRow in rows
tell aRow
--log "count of text fields=" & (count of text fields)
--log "value of text field 1=" & value of text field 1
--repeat with aTF in text fields
-- tell aTF
-- -- log value --> Can't get
-- end tell
--end repeat
if value of first text field is "MCCVin" then
--log "count checkboxes=" & (count checkboxes)
click checkbox 1
end if
end tell
end repeat
end tell
end repeat
end tell
end repeat
end tell
end tell
end tell

Similar Messages

  • Automator Hide / Unhide iCal Calendar

    Hello,
    I'm wondering if it's possible to do something in iCal. I have a 'daily task list" in iCal that I hide at the end of the day when I've ticked everything off.
    I would like to run automator in the middle of the night to 'unhide' that iCal calendar so it's back on when I return to my computer in the morning. I've tried to record a 'watch me do' action for this, but no luck.
    Any ideas?
    Thanks in advance,
    -Grey

    My sincere apologies to the author, because I cannot remember where I got it, but this works:
    tell application "System Events"
    tell application process "iCal"
    tell front window
    --log "count of scroll areas=" & (count of scroll areas)
    repeat with SA in scroll areas
    tell SA
    --log "count of outlines=" & (count of outlines)
    repeat with OutL in outlines
    tell OutL
    --log "count of rows=" & (count of rows)
    repeat with aRow in rows
    tell aRow
    --log "count of text fields=" & (count of text fields)
    --log "value of text field 1=" & value of text field 1
    --repeat with aTF in text fields
    -- tell aTF
    -- -- log value --> Can't get
    -- end tell
    --end repeat
    if value of first text field is "MCCVin" then
    --log "count checkboxes=" & (count checkboxes)
    click checkbox 1
    end if
    end tell
    end repeat
    end tell
    end repeat
    end tell
    end repeat
    end tell
    end tell
    end tell

  • Delete all calendars from an iCloud account

    Hi  Support Communities,
    did anyone find a way to delete all calendars from an iCloud account? It seems that iCloud wants to keep at least one calendar. We use several accounts and one is only used to look at shared calendars from other accounts. So there is no need for its own empty calendar. On iOS I just hid this calendar, but on OS X it is always visible. I unchecked it, but it would be nice if I could just delete it. If I do so on an iOS device it is gone, but reappears later. Trying to delete it on a Mac results in an error that it can’t be deleted, same goes for the web interface at icloud.com. It’s just a cosmetic issue, but I would prefer it to be gone altogether. Any ideas?
    Thanks
    Björn

    I had hoped I was wrong, you never know. Well, thanks anyway!
    Björn

  • Create a url from a report program

    Hi All,
    Could anyone please suggest me how do i generate a url from a report program. I need to use this generated url then, as a link in an excel sheet.
    Thanks in advance,
    Warm Regards,
    Preethi.

    Hi Preethi,
    REPORT  ZAZUURL                                 .
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.
    <b>Regards,
    Azhar</b>

  • How can I print my calendar from I-Cloud?

    How can I print my calendar from I-Cloud?

    If you computer is syncing calendars with iCloud, you can print it from your computer's calendar program (such as Outlook or Mac iCal/Calendar).  Otherwise, you'll have to take a screenshot of it on icloud.com and print the image.

  • Prevent calendar from showing early morning hours on week view?

    I really don't need to see 1AM - 8AM on the week view of my calendar.  I went in the settings and tried to say that my day starts at 8AM, but it still shows me the early morning hours.  How can I change this?
    Thanks!

    polishedstaple,
    As depicted in this example, that choice only changes the shading of the calendar background for the specified timeframe.
    It will not hide the excluded times from being displayed.
    ;~)

  • How to stop the Calendar from editing your input?

    How to stop the Calendar from editing your input?

    I am constantly finding that Calendar Version 8.0 thinks it knows what I want to type but it incorrectly takes numbers and days and times out of my input and changes my appointments. I hate this new supposedly "smart" feature. Even when I edit my event correctly a second or third time it rewrites my input incorrectly again. I have to use my iPhone to override the annoying editing on my mac. I am ready to find a new calendar program unless Apple allows users to input what they want without their information being incorrectly edited.

  • I' d just want my iPhone didn't alert on Holyday, but I don't want to hide the Holyday calendar.

    I' d just want my iPhone didn't alert on Holyday, but I don't want to hide the Holyday calendar. Default alert can't be set. Thank you.

    Did you restore your new iPhone 4 from the backup of your iPhone 3? Did you make a current backup of your iPhone 3 BEFORE restoring this backup to your iPhone 4? Photos in your camera roll are included in the iPhone backup, but they must be in that backup in order to restore them to your new phone.

  • How to Hide / Unhide iGrid Applet

    I'm attempting to develop an irpt page which will feature two grids / applets.  The topmost grid will be visible upon initial load of the page.  Upon selecting a record from the top grid, I'd like to then unhide the bottom grid so that a user may select a row from it before then calling another page.
    I've tried all of the following methods to hide / unhide the grid but none appear to be working:
    1)  Set the style.display of the applet to 'none' and then set it to 'inline' after row selection of the top grid.
    2)  Set the column widths of the bottom iGrid to 0 and then use the document.iGrid-applet.ColumnWidths=x,y JS command after row selection of the top grid.
    3)  Set the initial width of the iGrid applet to 1 X 1 and then use the document.getElementById("applet-iGrid").style.width / height = 'xxxpx' after row selection of the top grid.
    None of these solutions work.  It appears that once the iGrid applet is loaded, none of these properties may then be utilized to change it's appearance.
    How can hide upon load and then subsequently unhide an iGrid applet??
    Thanks in advance,
    Randy

    Thanks Udayan - this worked. 
    Only other tidbit was that it appears you first have to set the style display to inline in the div tag (to ensure all subsequent object references to the grid are valid). 
    Then in the function called by the update event of your top iGrid applet, you have to hide the bottom iGrid/applet with the style="display:none" command.
    Then in the function called by the selection event of your top iGrid applet, you have to unhide the bottom iGrid/applet with the style="display:inline" command.
    This ensures the applet is first displayed (so that all references to the grid object are valid), hide it when the first (top) grid is displayed, and then unhide it when a row is selected from the first (top) grid.
    Thanks again,
    Randy

  • How can I disable or delete HP TouchSmart Calendar from my PC

    Hello...I have an HP Pavilion slimeline Model: s5-1205z. I have over 30,000 error messages related to the HP TouchSmart Calendar on my PC. I do not have nor use a TouchSmart anything, and do not understand why these errors are happening. They appear to be generated about every 3 minutes apart and several errors listed for the same date and time in between.
    How can I get rid of these errrors and prevent them from happening again? I have not been able to find any information on how to disable this feature or delete it from the Help files, so any assistance or suggestions would be greatly appreciated. :-)

    Hi,
    You should be able to uninstall HP Calendar using Control Panel, Programs and Features.
    Jaco
    ****I am not an HP employee****
    Please give a" Kudos, Thumbs Up" if advice received is relevant or" Accept as Solution" to assist other forum users having a similar problem.
    HP Products:
    810-150se Desktop
    17t-j000 Notebook
    H8 1380t CTO Desktop
    560z Desktop
    Errare humanum est.

  • Hide/Unhide Button on a Custom Form?

    Hello!  I am looking for some ideas regarding the ability to hide/unhide a button on a custom form.  Ideally, I would like to create an authorization group, if a user is a member of the authorization group, they can see the button, if not, the button is hidden.  Is this something that can be done?  If not, does anyone have another way of doing this?  Thank you.

    Are you asking specifically for Smartforms, SAPforms, Interactive Adobe forms? Or generally about UI programming?
    Generally yes, this is possible and is also often done to give the user a more friendly interface to work with (without having to click on buttons, only to discover that they cannot use it anyway).
    Many standard transactions are developed in this way.
    Cheers,
    Julius

  • Hide/Unhide Column in WAD via Button

    Hi,
    I would like to create a Button in WAD that hides or unhides a certain column (key figure) from a DP in the WebReport. What is the INSTRUCTION to Hide/Unhide a column?
    Thanks for your help!

    Hi Andreas,
    Use Generic Navigation Block to hide or unhide a keyfigure.
    Use generic Navigation web item
    Assign the report to the data provider
    After execution select the navigation block and select the keyfigures and uncheck the check box for the keyfigure to be hidden.
    Regards
    RaM

  • How to edit/publish a calendar from multiple computers?

    In our small business we have up to three people doing scheduling using iCal. We would like to use our separate computers to edit/publish calendars. Right now, we can subscribe, but not publish calendars from multiple machines.
    Is there a way to remotely log in to the Mac we publish the calendars on, or can we do this through the web?
    Sorry if this has been covered before . . . thanks!

    The only way I know to "log in" to another computer is through the Apple's sofware: Apple Remote Desktop (a bit overkill if all you want to do is edit a calendar)
    It is not possible to edit another user's calendar, you can only sibscribe.
    Perhaps a 3rd party will have this ability soon (Chronos is coming out with a major upgrade to their Group/Personal Organizer product.
    DayLite by Market Circle is another product which may let you do what you want but it doesn't currently sync with iCal, thus you would lose all the extended functionality of iCal.
    Sorry none of these meet your current needs,
    Do look at CalTalk if you need to share calendars locally without publishing them to the web. (How do you share now?)
    There are also some web based calendar programs (eg BaseCamp) but you have to always be connected to the web and pay a subscrition fee.

  • Import calendar from Microsoft Works (vcalendar fi...

    Hi,
    I want to import my calendar from a Microsoft Works program (in v-calendar file format) to my new nokia N95 phone's calendar.
    Does anyone know how I can do this?
    I have spent many days searching for ways online, but to no avail.  I have tried to create a google calendar, but it will not upload the file (says google calendar not available at this time)
    I do not have Microsoft Outlook to load the file onto that.
    PLEASE HELP ME!!
    Thanks :-)

    Hello
    I looked in the DataViz site what they wrote about MacLinkPlus Deluxe.
    I found:
    DOS and Windows Spreadsheet Formats
    • AppleWorks 5.0
    • ClarisWorks 1.0, 3.0, 4.0, 5.0
    • Excel 2.x, 3.0, 4.0, 5.0, 95, 97, 2000, XP 2002
    • Lotus 1-2-3 WK3, WK4, 97, 98, Milennium 9.5
    • MS Works for Windows 3.0, 4.0, 4.5, 95
    • Quattro Pro (DOS) 4.0
    • Quattro Pro for Windows 1.0, 5.0, 6.0, 7.0, 8.0
    • Quattro Pro for Windows 9.0 (Read Only)
    • SYLK (Read Only)
    Macintosh Spreadsheet Formats
    • AppleWorks 5.0
    • AppleWorks 6.0 (Read Only)
    • ClarisWorks 1.0, 2.x, 3.0, 4.0, 5.0
    • Excel 2.0, 3.0, 4.0, 5.0, 98, 2001, X, 2004
    • MS Works 2.0, 3.0, 4.0
    • SYLK (Read Only)
    • AppleWorks (Apple II) 2.1, 3.0
    So, I assume that this product would be able to help.
    Yvan KOENIG (from FRANCE samedi 22 avril 2006 21:29:36)

  • Hide the field display from it0002

    i wanted to hide a field   display from  IT0002 screen, queries, table view or other  like transaction pa20 or pa30 ,should be prohibited when not authorized.

    Hi
    If you want to hide fields based on authorization, you need to first create a custom authorization object and then program the authority check using function module in the PBO module of Z Include. If the authorization for the user fails, hide the field by looping through the screen structure.
    ...Code to check authorization...
    CHECK SY-SUBRC NE 0
    LOOP AT SCREEN
    IF SCREEN-NAME = 'your_field_name'.
        SCREEN-VISIBLE = 0.
        MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Akso, do not forget to assign the auth. object to the authorized users(This is BASIS activity).
    Edited by: rumhat on Mar 8, 2011 8:02 AM

Maybe you are looking for