Get window name of PowerPoint document window
Get window name of PowerPoint document window
- Subject: Get window name of PowerPoint document window
- From: Paul Wasmund via AppleScript-Users <email@hidden>
- Date: Wed, 11 May 2022 16:56:44 -0500
I have the following script that fails with the error: The variable window_name
is not defined. If I modify the script with the bundle id of Word or Excel with
an appropriate document the script returns the file name without the extension.
How do I get this info from PowerPoint?
set window_name to ""
set bundleID to “com.microsoft.PowerPoint"
set file_path to "/pathToFile/myFile.pptx"
tell application id bundleID
#display dialog "launch argv = " & file_path
open file_path
tell window 1
set window_name to name
end tell
quit
end tell
window_name
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden