I need to extract the template from a powerpoint presentation and apply that template to another presentation.
After my search, I found two commands:
1) get template name of presentation
The above commands gives the template name, but not the path where it is stored. I am unable to find that.
2) apply template presentation file name "Macintosh HD:Users:Shared:Zesty"
The above command applies the "Zesty" design template to the presentation. But again I had no success as I don't know where this design template is stored. After googling I found the location can be: "/Users/sanjeev/Library/Application\ Support/Microsoft/Office/User\ Templates ". But I found no templates there.
So, is there any way to extract the template from a powerpoint presentation and apply that template to another presentation??
Thanks
PowerPoint doesn't store the path to templates in presentation files. There's no need to. It never refers to external templates except when the user/your code applies them. At that point, it stores a copy of the template IN the PPT file.
Extracting a template from the PPT file is simply a matter of opening the file and saving it as a template.
But you don't even need to do that unless you want to. Since every presentation contains its own template, you can apply the template from one presentation to another; no need for an actual template file.
In VBA, you'd do:
ActivePresentation.ApplyTemplate FileName:="[path to file whose template you want to apply"
I don't do Applescript, but it should be possible to translate that.