RE: Some basic AppleScript questions and about PowerPoint scripti ng
RE: Some basic AppleScript questions and about PowerPoint scripti ng
- Subject: RE: Some basic AppleScript questions and about PowerPoint scripti ng
- From: Dennis Cox <email@hidden>
- Date: Mon, 24 Apr 2006 11:55:34 -0500
> ----------
> From: (Steve-O)
> Sent: Monday, April 24, 2006 10:07 AM
> To: email@hidden
> Subject: Some basic AppleScript questions and about PowerPoint
> scripting
>
> Dear list,
>
> A long time ago, I did a *lot* of HyperTalk programming so I have a
> basic understanding of AppleScript. But that was on OS 7, quite a
> while ago.
>
> Now, under OS X and using AppleScript, I'm having difficulty doing
> the most basic things. Additionally, I'm trying to do some basic
> scripting with Power Point 2004 and all of the documentation I've
> found has been for much harder things that what I'm trying to
> accomplish.
>
> So my questions,
>
> 1) is there a good book, tutorial, reference for AppleScript that
> focuses on doing things. I seem to remember a simple tutorial in the
> old days that showed you basically how to do anything interesting you
> would want to do with the SimpleText.
>
>
This is the place for AppleScripting Microsoft Office:
<http://www.microsoft.com/mac/resources/resources.aspx?pid=asforoffice>
There is a very good reference for PowerPoint.
> 2) My review of the list suggests that working with Microsoft Office
> 2004 using AppleScript is not conventional? I'm trying to do just a
> few simple things:
>
It uses the object model from Visual Basic for PowerPoint, but I think that
overall it's pretty good for AS.
> tell application "Microsoft PowerPoint"
> activate
> open document file "~/presentations/12341234.ppt"
> end
>
> this doesn't work...if I try to use the script recording it produces
> the "old style" open document file "12341234.ppt" of folder
> "presentations" of folder "steve" of folder "Users" of volume
> "powerbook" (or something like that) which isn't very helpful. Is
> there a way to get between Unix paths and AppleScript objects?
>
You just work backwards and use colon separators between each finder item.
For the above:
powerbook:Users:steve:presentations:12341234.ppt
> tell application "Microsoft PowerPoint"
> go to next slide
> end
>
> and same with "go to previous slide"
>
>
Which slide show window do you mean? You have to specify the settings of the
presentation and run a slide show.
tell application "Microsoft PowerPoint"
set ssPresentation to slide show settings of active presentation
run slide show ssPresentation
go to next slide slide show view of slide show window 1
end tell
Dennis
_______________________________________________
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