• 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
Scripting Preview Pane in Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Preview Pane in Entourage


  • Subject: Scripting Preview Pane in Entourage
  • From: Todd Geist <email@hidden>
  • Date: Wed, 23 Mar 2005 09:32:18 -0800

Hello Everyone,

I am trying to script changing Preview Pane to "On Right in MS Entourage.  I
think I need to use GUI Scripting to do it.  But the script which I got from
apple's GUI scripting page doesn't seem work (see below)

Does anybody have any ideas?

TIA

Todd



The " click menu item submenu_item" line fails when I run it.

do_submenu("Microsoft Entourage", "View", "Preview Pane", "On Right")

on do_submenu(app_name, menu_name, menu_item, submenu_item)
    try
        -- bring the target application to the front
        tell application app_name
            activate
        end tell
        tell application "System Events"
            tell process app_name
                tell menu bar 1
                    tell menu bar item menu_name
                        tell menu menu_name
                            tell menu item menu_item
                                tell menu menu_item
                                    click menu item submenu_item
                                end tell
                            end tell
                        end tell
                    end tell
                end tell
            end tell
        end tell
        return true
    on error error_message
        return false
    end try
end do_submenu


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Scripting Preview Pane in Entourage
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Re: Mount Volume using SMB works in 10.2.8....since when?
  • Next by Date: Re: Scripting Preview Pane in Entourage
  • Previous by thread: Re: Mount Volume using SMB works in 10.2.8....since when?
  • Next by thread: Re: Scripting Preview Pane in Entourage
  • Index(es):
    • Date
    • Thread