Script to change PowerPoint shows automatically

Hi, I'm trying to figure out a task using AppleScript without much joy, hoping some wise person can help me with some pearls of wisdom:)
Basically, I'm using a PowerMac running 10.3.9 to automatically display a PowerPoint show of announcements (.pps file). That works fine, it wakes at a certain time, and using a scheduled task in iCal it begins the PowerPoint show at the right time.
But at a certain time I want it to switch to a different .pps show, and I cannot get it to do this. It will not quit the current show without me manually hitting escape, and then it straight away loads and runs the next show, but it won't do it automatically.
Is this something I can write a specific AppleScript for? Or is it an iCal issue, where it won't run a scheduled task while another is running? Is it a Panther issue that has been resolved in Tiger?
I'd be grateful for any help, thanks:)
Mark.

Ironically, even with 'Microsoft Excel' instead of 'Microsoft PowerPoint' the two (2) code segments above did function as expected.
For clarity:
-- Code starts here --
set presentation01 to "HD02_140:Users:s:Desktop:Presentation1.pps"
set presentation02 to "HD02_140:Users:s:Desktop:Presentation2.pps"
set dPeriod to 25 -- Number of seconds to delay, before switching '.pss' files.
tell application "Microsoft PowerPoint" to open presentation01 -- Open first presentation slide show.
delay dPeriod
tell application "System Events" to tell process "Microsoft PowerPoint" to key code 53 -- 'esc' key pressed.
tell application "Microsoft PowerPoint" to open presentation02 -- Open second presentation slide show.
-- Code ends here --
... and ...
-- Code starts here --
set presentation02 to "HD02_140:Users:s:Desktop:Presentation2.pps"
tell application "System Events" to tell process "Microsoft PowerPoint" to key code 53 -- 'esc' key pressed.
tell application "Microsoft PowerPoint" to open presentation02 -- Open second presentation slide show.
-- Code ends here --
However, the code segments can be reduced even further, to ...
-- Code starts here --
set presentation01 to "HD02_140:Users:s:Desktop:Presentation1.pps"
set presentation02 to "HD02_140:Users:s:Desktop:Presentation2.pps"
set dPeriod to 25 -- Number of seconds to delay, before switching '.pss' files.
tell application "Microsoft PowerPoint"
open presentation01 -- Open first presentation slide show.
delay dPeriod
tell application "System Events" to key code 53 -- 'esc' key pressed.
open presentation02 -- Open second presentation slide show.
end tell
-- Code ends here --
... and ...
-- Code starts here --
set presentation02 to "HD02_140:Users:s:Desktop:Presentation2.pps"
tell application "System Events" to key code 53 -- 'esc' key pressed.
tell application "Microsoft PowerPoint" to open presentation02 -- Open second presentation slide show.
-- Code ends here --
... respectively.

Similar Messages

  • Is it possible to script language change in OSX Lion ?

    I recently purchased a Disney game (Cars 2) from the App Store, which advertises being available in 5 languages. It seems now that the game has no in-app options to change language, but selects the language based on OSX settings (but otherwise the app doesn't use ANY of the GUI elements from the OS).
    My Mac's are all set up in English, in the account on which my kid plays the game doesn't have administrator rights (for good reasons). He doesn't master the English language enough and would like to play the game in dutch. On the other hand, when using Safari and other apps, he is used to the English user interface.
    Is it possible to create a script that changes the Finder language to Dutch, then forces Finder Quit, then launches the App, and after quitting the App reverses the Finder Change ? (or if not in one step, maybe in a number of subscripts), so that I can let my kid enjoy his game in dutch without me having to be present each time to change the system settings ?
    Thanks in advance.
    Philip

    Tom, thanks, this works perfectly. In older days, I have been a programmer on Mac (long before even the PowerMac days), and back then I would have used ResEdit to do something similar as what you suggested. Since those days are long gone, I was not sure if it was possible to change the resources of an app without extensive coding software, but the trick you just showed me seems to be the current-day equivalent of ResEdit ...
    Anyways, you saved our day ... thanks alot
    Philip

  • I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway inst

    I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway installing PSE-10 or uninstalling it. If I send the  PDF file that has been automatically converted to a PSE-10 the person I send the file to can not open it because they do not have PSE-10. What can I do to stop PSE-10 from converting my PDF files? Don't tell me to upgrade PSE-10 I tried their on-line program and  it is too advance for a hobby photographer like myself and their Help Desk is impossible to reach.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

  • Urgent:How to modify a script without changing the print programme

    Hi all,
    Can any body pls tell me <b>How to modify a script without changing the print programme</b>
    Give m esome real time examples.
    Good points willbe rewarded
    Thanks

    Hi
    You can write a external Subroutine to fetch the extra data into the script program
    see the following sample code
    How to call a subroutine form SAPscripts
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    COPING SCRIPT
    There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.
    I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...
    To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.
    You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.
    Ex: Go to SE71,
    on menu bar u find Utilities->copy from Client. click on it u ll find new screen showing
    Form name:
    Source Clinet:
    Target Form:
    give Form name as usedefined form name EX: ZFORM1
    Source client as 000 and
    Target form as MEDRUCK.
    execute.
    Now, the standard from MEDRUCK is copyied to your form ZFORM1.
    NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.
    Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.
    Go to NACE Transaction.
    on Applications select EF for purchase order and click Output types button on application tool bar.
    now select NEU as output types dobule click on Processing Routines.
    now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.
    go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .
    you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4089895&messageID=3239299
    Regards
    Message was edited by:
            Kiran Sure(skk)

  • Script to Change swatch CMYK values

    Are there any scripts available to change CMYK values of swatches for files in CS3?
    I have hundreds, probably thousands of Illustrator EPS files that use swatches all drawn from a total palette of maybe 50 colours.
    Each colour is named and has a corresponding CMYK value.
    I want to update the CMYK values for all ~50 colours that appears across all these documents. Is there some way I can simply change the CMYK spec of the swatches used by each of these documents by not having to manually open and change the colours etc?
    Even a script would be good that could batch process the files?
    For example:
    File contains a swatch as a named colour like:
    Fire Red spec'd as 0, 96, 99, 0
    I want to automate changing the CMYK values for all files containing Fire Red to, say, 0, 98, 99, 0
    Any ideas? I have searched Google for a couple of days.
    Edit: the flavour here is Illustrator for CS3 - both Win and Mac.

    I understand EXACTLY what you mean as it's the same thing I need to do, and will probably need to do on future occasions.
    Did you get anywhere with this problem?
    I have designed a scheme for a textbook I am illustrating (this is what I do for a living and have been doing so for well over a decade using Illustrator).
    All colours used in every illustration are based on 7 CMYK Global swatches, usually 100% tints but also 50% 75% and others when required.
    Anyway I have done 100 illustrations already based on my template when I realize I'm going to have to darken the green by +10% cyan.
    What I need is a script to change the definition of my global 'green' swatch in every document from 100Y 30C to 100Y 40C.
    Actions won't do it.
    Any suggestions?

  • Script to change Volume for TimeMachine?

    Hello,
    could anyone help me with a script that changes the volume for use with Time Machine?
    My parents are using their laptops about half the time at home with a Time Capsule. The other half, they stay at the office, equipped with a second Time Capsule which is used for all the other Macs at the office.
    We are using MarcoPolo (http://www.apple.com/downloads/macosx/networking_security/marcopolo.html) to change printer settings and other things.
    MarcoPolo is also able to perform own scripts. I want to use this feature, to allow Time Machine to back up to both Time Machines automatically without switching the TM volume manually in the system prefs.
    But I don't have any experience in scripting, so I really would appreciate your help.
    Greetings,
    Michael

    there is no nice way to do this. this operation is not scriptable. the best you can do is use GUI scripting which essentially records what you do on the screen. this can be done with automator. see this thread for details.
    http://discussions.apple.com/thread.jspa?messageID=8287777&#8287777
    However, any kind of script like that is bound not to be very reliable as a user can easily accidentally interfere with it while the script is running.

  • Edit catt script for changes in in web appl server higher than 6.4 release

    Hello Guru’s,
    Will you help me in editing the CATT script for changes in Web application server release higher than 6.4 release, when I look for edit mode it was showing the following message. will anyone suggest me is there any way to make changes.
    “While I was choosing change mode it was displaying the above message ( Message No:TT005)”
    Full points for the answer

    It seems there there is no problem with my FireFox 7.0.1 on my Mac OSX 10.7.2. So, maybe you can solve the problem by updating your OS. The only minor problem here is that Firefox doesn't display in the Tibetan fonts that you choose, it always display in Kailas font for Tibetan.

  • How can I remove the old apple id from my ipod 4rth gen to log in my new apple id ? (my old apple id keeps showing automatic I can't put my prefer new apple id)

    How can I remove the old apple id from my ipod 4rth gen to log in my new apple id ? (my old apple id keeps showing automatic I can't put my prefer new apple id)

    - Note that apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • Email address change not showing on ipad after sync

    iTunes email address change not showing on ipad after sync

    So change it.
    Open iTunes, scroll to the bottom of the main page, tap your account name, log out then sign in with the correct name.

  • Powershell Script to change the default user Account picture for all users in windows 7 and 8

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev
    The default user account picture is stored here.
    C:\programdata\Microsoft\User Account Pictures\user.bmp
    It should just be a matter have copying the picture you want to that location and over writing what is there.
    or....
    Computer Configuration\Administrative Templates\Control Panel\User Accounts\Apply the default user logon picture to all users
    You can also configure this by a registry setting;
     [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
      UseDefaultTile = 1
    The picture that you configure, will not be loaded until the user account will actually be created on the pc. Meaning the first time a >new< user will log on to a pc, they will have no picture shown at all using their login screen (this is default
    behavior). Same will occur if you enable the policy don't display last user name. However, once they log in the picture will be shown in the start menu, and if they lock their pc the image will also be shown

  • The backup files for my devices are saved to my internal hard drive. I have a small internal hard drive and would like them to be saved to an external drive. How can I change where iTunes automatically backs up to?

    The backup files for my devices are saved to my internal hard drive. I have a small internal hard drive and would like them to be saved to an external drive. How can I change where iTunes automatically backs up to?

    This has nothing to do with iTunes as iTunes provides no way to move or relocate the backup files.
    A search of google or the fourms would reveal ways to create a folder link to relocate the physical location where the files are stored.

  • Powershell script to change the a column value of all documents in a site.

    Hi,
    I need a powershell script to change the value of a column (a site column which has been added to all document libraries) in all documents in a site,
    For example: 
    -column 1 is a site column added to all libraries
    the value of column 1 of all documents under this site: http://intranet.doman/ex1 should be equal to V1
    the value of column 1 of all documents under this site: http://intranet.doman/ex2 should be equal to V2
    So, if I can write a powershell script to change the value of all documents in a site, I can modify it for different site that I have and run it for each of them individually,

    cls
    # Is dev version?
    $dev = $false
    # Configuration
    $termStore = "Managed Metadata Service"
    $group = "G1"
    $subjectMatterTermSetName = "Subject Matter"
    # Check if SharePoint Snapin is loaded
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
         Add-PSSnapin Microsoft.SharePoint.PowerShell
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") | Out-Null
    function GetTermStore($site, $termStore, $group, $termSet) {    
        $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)
        $termStore = $session.TermStores[$termStore]
        $group = $termStore.Groups[$group]
        $termSet = $group.TermSets[$termSet]
        return $termSet
    if($dev) {
        Write-Host "Running DEV version..."
        $webUrl = "http://Site1"   
        $libraryName = "L1"
        $subjectMatter = "C1"
    } else {
        $webUrl = Read-Host "Enter Site URL" 
        $libraryName = Read-Host "Enter Document Library name"
    $subjectMatter = Read-Host "Enter Subject Matter"
    try {
        $web = Get-SPWeb $webUrl
        $site = $web.Site
        $library = $web.Lists[$libraryName]
        $items = $library.GetItems()
        $subjectMatterTermSet = GetTermStore $site $termStore $group $subjectMatterTermSetName
        $subjectMatterTerm = $subjectMatterTermSet.GetTerms($subjectMatter,$true) | select -First 1
        foreach($item in $items) {
            if([string]::IsNullOrEmpty($item["Subject Matter"])) {     
                #Write-Host "Filename: $filename / Keywords: $keywords / Subject Matter: $subjectMatter / Document Type: $documentType"        
                Write-Host "Updating $($item["ows_FileLeafRef"])..."           
                # Set Subject Matter column
                $subjectMatterField = [Microsoft.SharePoint.Taxonomy.TaxonomyField]$item.Fields["Subject Matter"]
                $subjectMatterField.SetFieldValue($item,$subjectMatterTerm)
                # Update Item
                $item.SystemUpdate()
    catch
        $ErrorMessage = $_.Exception.Message
        Write-Host "Something went wrong. Error: $ErrorMessage" -ForegroundColor Red

  • [JS, CS3] a script to change language in all paragraph styles

    Hi,
    I made a script to change the language in all paragraph styles to "French", but when I run it I get the error: "Invalid request on root style". Could you please tell me what am I missing?
    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    for (i = 0; i < myStyles.length; i++)
    myStyle = myStyles[i];
    myStyle.appliedLanguage = "French";

    Thanks a lot!
    The problem is solved
    Ola

  • No sound when viewing powerpoint show

    I have received an powerpoint show which contains sound. But there's no sound when I view it in Keynote.
    I have tried opening it on my work pc, a windows/office2003 combination, and music pours out of the speakers.
    I have searched for others with this problem, but the latest post is almost two years old. So was this ever fixed or do I need to do something?
    I have already upgraded to the latest 9.0.3 iWork release.

    FYI
    The ppt/pps with problems are the ones where the sound file is .wav
    For reasons beyond my understanding, Keynote does not support this basic sound format. Comon Apple, this format has been there ever since I remember. I even had a sampler on my C64, which handled this format.
    What gives?
    Temporary solution was to install OpenOffice 3.1 on my mom's imac. We both remain clueless as to why we paid for the apple office suite, and then have to install an open source variant to handle ppt's with .wav sound files.
    How is a macaficionado/fanboy to explain this to a mac-convert?

  • In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?

    In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?

    Two items in the Advanced JavaScript window were removed as of the Firefox 4.0 version, but they are still available thru about:config .
    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''dom.disable_window_status_change''' = double-click to toggle to '''false''' to allow websites to mess with status text.

Maybe you are looking for