Resize a Keynote slide with Applescript
Hi, I'm trying for hours to resize a Keynote presentation in a window, but with no success.
I'm starting thinking that it's impossible..
With
tell application "Keynote"
start
set the bounds of the window 2 to {0, 0, 800, 600}
end tell
it doesn't work properly..
Is there a way to launch the slideshow and then change the rect (size and position) of the presentation to show, for example, the slideshow in a particularly part of the desktop?
Any hints would be appreciate...
Thanks
Any particular reason for those specific technologies? wget does not exist on a mac, although you can nstall it I guess. OS X has curl installed which should do pretty much anything you want to do with wget. cron is being replaced by launchd, although cron still exists on mountain lion.
As far as I can tell from automator all the standard 'actions' to access keynote available to it require keynote to be open and running, but does not provide a function to actually open it. So I think you will have to write some applescript, as a minimum to open and quit keynote. I notice that the keynote actions are mostly circa 2005 an wonder if they would even work.
Under utilities in automator 'actions' there is a capability to add applescripts as part of the workflow.
Also, note that cron is being dprecated by Apple and replaced by launchd. that said cron is stil on my mountain lion instalation.
This entry at stackoverflow shows use of cron with curl to get web urls. http://stackoverflow.com/questions/1683620/getting-started-with-cronjobs-on-a-ma c
If I have any time I may try and get this to work as it is quite interesting and new to me. But otherwise, good luck.
Similar Messages
-
How can I use wget, cron and Automator to periodically pull an image from a URL (which is dynamically updated - like a weather map, say - to local storage, and then update a Keynote slide with that image, automatically?
Any particular reason for those specific technologies? wget does not exist on a mac, although you can nstall it I guess. OS X has curl installed which should do pretty much anything you want to do with wget. cron is being replaced by launchd, although cron still exists on mountain lion.
As far as I can tell from automator all the standard 'actions' to access keynote available to it require keynote to be open and running, but does not provide a function to actually open it. So I think you will have to write some applescript, as a minimum to open and quit keynote. I notice that the keynote actions are mostly circa 2005 an wonder if they would even work.
Under utilities in automator 'actions' there is a capability to add applescripts as part of the workflow.
Also, note that cron is being dprecated by Apple and replaced by launchd. that said cron is stil on my mountain lion instalation.
This entry at stackoverflow shows use of cron with curl to get web urls. http://stackoverflow.com/questions/1683620/getting-started-with-cronjobs-on-a-ma c
If I have any time I may try and get this to work as it is quite interesting and new to me. But otherwise, good luck. -
Keynote slides with video - not linking in Ibooks Author
Hi
I have a problem with linking Keynote slides containing videos in Ibooks author. I am using the latest version of both programs on Yosemity (6.5.2 keynote, Ibooks Author 2.2 )
The keynotes is set up with ‘Links Only’ and it works perfectly in Keynote. In Ibooks author the ‘link only’ is not working and the slides just progresses to next one. Like the Presentation type was set to normal, whether or not I press the link or outside the link. The exact same keynote slides without the video doesn’t have this problem and links perfectly in Ibooks Author. The result is the same testing the Ibook directly on the Mac or on the Ipad Air (8.1.2)
To make sure about the video types I tried a number of different ones (different Mac/Ipad video conversion programs) all with the same result. The result is also the same whether it plays ‘on page’ or ‘full-screen’ in the Ibook. The videos all plays perfectly but the links are not working.
Saving the keynote to 09 seemed to solve the problem. I am new to Ibooks author …. And the whole Mac environment. But I am thinking it’s supposed to work without having to do this????
The same happened when I tested a linked keynote example from Lynda.com. ‘Ibooks essential training’. Only in the 09 version it was working with the links, when the slides had videos. This example was off course also created in an earlier Keynote version.
Niles , DenmarkThis is a problem that I've reported both here and via bugreport.apple.com. However, I don't think that it has to do with screen resolution (retina/non-retina). Rather, I think it has to do with setting the widget to "full screen" where transport controls cannot be used and selecting a "Links Only" presentation.
I used simple forward and back arrows set (Control-click on object) to go to next slide or previous slide. What I found was that while this works as designed when played back in Keynote (OS X or iOS) but not in the Keynote widget. The links only setting and these hyperlinks are totally ignored in the Keynote widget. Tapping anywhere went to the next slide. Tapping on the back arrow also went to the next slide, -
Access body part of any keynote slide using Applescript
Hi,
Is there any way I can access body part of Keynote slide?
I tried with this code but it doesn't work..
tell application "Keynote"
tell slideshow 1
set slidebody to "Apple"
set body of slide 1 to slidebody
-- Title works perfactly
set slideTitle to "Computer"
set title of slide 1 to slideTitle
end tell
end tell
Any help will be appreciated.
Thanks,
RohitYou should try the discussion that covers Apple script: Apple Technologies
-
OK... Title says most. Combining a single Keynote slide with a 7.4 MB MP3 and exporting to QuickTime is giving me a HUGE file of 110.2 MB.
Same slide, same MP3, exported to Flash yields an 8.2 MB SWF.
What's up with that??
I just want one slide to open up in full-screen, and click to play one song with the slide... and a file small enough to email.
Any suggestions?Ok, the magic key seems to be a Custom frame rate of 0.01. With a frame rate that low, I'm getting file sizes of just larger than the music file. Set Keyframe and Data Rate to Automatic.
The reason why this doesn't happen with Flash is because flash does things the way iPhoto does. Display one static image and leave it there until it needs to change. Keynote COULD do that with QuickTime, but it doesn't
Also, if that H.264 gamma change is causing you problems, I just found you can use PNG. Make the same change to the frame rate (you don't have to alter anything else for PNG) and you get a file just a skosh bigger, but closer to your original colors. -
How to set the transition duration of a slide in keynote with applescript
hi
how to set the transition duration of a slide in keynote with applescript
i made an applescript script which converts a numbers file to a keynote presentation
figured out how to set the transitions but cant find how to set the time
+set appTransition of slideTransition of current slide to "apple:dissolve"+
anyone?you can send keystrokes to invoke menu commands via shortcuts but as for transition time not sure. You've check the dictionary right? Scripting support is very limited in KN.
-
Play iTunes soundtrack under Keynote with Applescript
OK, so this isn't a question, more of a solution to a question I was struggling with: how to play multiple songs in the background of a Keynote presentation. What's more, I needed that soundtrack to fade out for certain important slides that had their own audio, but then fade back in (without starting over) when that slide was done.
I'm creating a standalone presentatoin that will run unattended, looped, during an event. It must be completely automated. It's mostly text slides, which is why I wanted general music underneath. But there are also some slides with videos of their own. I wanted a way to drop the soundtrack at the right time, and then restore the soundtrack afterward.
My solution is to set up my playlist in iTunes, play it, then run an applescript, and then start the slideshow. The script first sets the iTunes volume to whatever "MAX" volume is in the script. You can edit this to be a MAX volume of 10, 40, 100, etc. The script constantly monitors the slideshow, and when the slideshow gets to any slide with the command "itunesdown" anyhwere in the text of the presenter notes, it triggers an incremental drop of iTunes' volume by 10 units every .1 second until the volume is zero. If you want a slower fade, look for all of the delay values of .1 and make them .2, .3, whatever. It also keeps a lookout for any slide with the text "itunesup" and does exactly the reverse, raising the volume incrementally up to the MAX value.
I have not explored the possibility of also having the script monitor other text variables to perhaps trigger different playlists. I think that's possible, but for someone else to work out.
I'm sure there's a more elegant way to code this; I have certain lines of code literally repeated ten times to cover the full range of volume from 0 to 100 and back. I know there's a counter function that could do that in less space. But, again, I'll leave that to y'all.
Hope this helps someone!
-Scott
#ENTER YOUR OWN MAXVOL VALUE ON THE NEXT LINE
set MAXvol to 80
tell application "iTunes"
if it is running then
set the sound volume to MAXvol
end if
end tell
repeat
#LOOK FOR VOLUME DOWN SLIDE
tell application "Keynote"
set slideNotes to get notes of current slide of first slideshow
if text of slideNotes contains "itunesdown" then
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
#Decrease iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol > 10 then
set sound volume to curVol - 10
else
set sound volume to 0
end if
end if
delay 0.1
end tell
else
#LOOK FOR VOLUME UP SLIDE
if text of slideNotes contains "itunesup" then
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
#Increase iTunes Volume
tell application "iTunes"
if it is running then
set curVol to the sound volume
if curVol < MAXvol then
set sound volume to curVol + 10
else
set sound volume to MAXvol
end if
end if
delay 0.1
end tell
end if
end if
end tell
end repeatOh - I forgot to cite my work. Thanks to these sites for the inspiration and some of the code
http://alxndrmlr.biz/2011/06/itunes-increase-decrease-volume-script/
http://stackoverflow.com/questions/8710892/applescript-detect-what-slide-is-show ing-in-keynote -
How can I export a graphic slide with a quicktime movie from Keynote?
I export a title slide with a quicktime movie from Keynote to my desktop and it plays fine with audio. Once I insert or drag the clip into iWeb the resolution is degraded and very choppy. The resolution is 320x200 and I'm exporting from Keynote as a custom size (320x200) Frame rate: 29.97 Key Frames: Automatic Key Reordering is checked Data Rate: Automatic Quality: Multi pass. I need some help.
how large is the video and if you publish - does it still have the same horrible quality?
you might considering exporting as flash (loads faster) and integrating that into your iweb site using post-editing: http://karreth.com/index.php/articles/iframes-iweb/
max -
I am trying to print keynote slides in handout format with notes. The notes are cut-off. Is there a solution to this problem?
You can also turn off the automatic capitalization if you find it gets in the way too often:
Settings -> Keyboard -> Auto-Capitalization
Regards. -
I don't seem to be able to move from one simple keynote slide to the next.
I just have text on each - like notes for a presentation.Howdy tommmy,
To go to the next slide in a Keynote for iOS presentation, tap on the screen with one finger. See this article for information about gestures in Keynote -
Keynote for iOS (iPad): Touchscreen basics for Keynote
Tap
Using one finger, quickly and firmly touch the screen and then lift your finger. Use this gesture to select an object or activate a button. You also use this gesture to advance to the next slide when playing a presentation.
Thanks for using Apple Support Communities.
Best,
Brett L -
Resizing/Cropping slides with Animation
I have a quick question regarding resizing/cropping slides
that have some type of animation, whether it be mouse, scrolling,
typing, etc. But if I use the resize movie option, and then crop.
say for example, I want to crop off the IE bar at the top and
bottom. it will crop off the bars on normal slides, but any slide
with animation, it will on. I understand the slide is an animation,
but is it possible have Captivate crop those bars off?Hi Amanda
If you can live with the results, one easy way around this is to insert a Highlight Box object that totally covers what you want to clear away. Configure it with a solid color, no transparency and no border. Then size and position as desired. Then copy from the initial slide and paste onto other slides. (Remember, you are able to multi-select the other slides before you paste).
Then you could Merge into Background to influence the changes.
You might try it with a copy of the project first and see if the results are acceptable to you and the client. It would seem far easier than re-recording or taking other drastic measures.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Keynote slides printing puzzle
I've done a lot of work on Pages over the years, but I'm really inexperienced with Keynote.
I want to print some slides (actually web site pages) from a presentation and have each one fill a single 8.5x11 page.
I've read Keynote Help – re: Printing Slides – in detail, but all I seem to be able get is a 5x8 (mol) image to print out.
Is that the biggest I can expect?Welcome to Apple Support Communities.
Let me suggest another approach that might solve your problem.
Does your printer driver software let you print multiple 'slides' on a single page?
Then you don't have to resize/redesign everything manually.
The Keynote and the printer software do the resizing.
For example, my (monochrome) HP LaserJet 1320 driver can print from 2 to 16 'pages' on a single sheet. (It also offers a 'booklet' option.)
I used a 1024x768 screen slide resolution and selected '4 pages per sheet' (landscape orientation) in the default printer driver under Layout.
In the Keynote options, I selected 'Individual Slide' option, but Keynote also offers Slides with Notes, Outline, and Handout options, and I think all Keynote choices are independent of printer selection. (If I did not select '4-pages on 1' in Layout, the Keynote would only offer 1 slide per page in this view.)
Message was edited by: kostby -
Hidden slides with full thumbnails
I don't think this can be done, so I submitted the following enhancement request to Apple. I'm posting it here just in case anyone knows how this can be done in Keynote '09. Thanks!
I'm my high school class historian, and I've prepared a .key file with slides containing each student's yearbook photo with a recent mug shot, a slide with a collage of recent photos, with photos from high school and recent reunions scattered throughout. As I get updated photos from classmates, I will drop them in. However, with 384 students in my graduating class, I often don't recognize their photos in the thumbnails, and I certainly can't read the name. Thus, when I get a photo from "Kuglitsch", it takes me a while to find the section of "K"s in this 480-slide presentation. I am therefore putting an additional slide with a 900-font capital letter at the beginning of each lettered section of the alphabet, so I can rapidly scroll through the thumbnails to find, for example, the "L" section to add another photo of Mr. Loser. Obviously, I don't want these letter slides to show in my presentations. Right now, I can click "Skip Slide" on these so that the don't show, but then the thumbnail will collapse - not useful for editing. Thus, I have to manually go through all 26 slides to Skip them before a presentation, and then manually Unskip them when I do more editing. It would be very useful if I could designate a slide as Skipped, but continue to see its full-size thumbnail.I'm not sure if your thumbnail approach can be done in KN (don't think so), and I'm sure you could probably write an AppleScript to do your job, if you know AppleScript. But there's a trick I use in other circumstances which will work for you, too.
Rather than simply "A", "B", etc., place a symbol which is not otherwise used in your whole file before or after the letter. For instance, an @. Thus, "@A", "@B", etc. Then, you can FIND whatever you want easily, even when the slides are skipped: either the whole alphabet, by FINDing "@", or a single letter, by FINDing "@L".
It's probably too late now, since you've already made so many slides, but you could have made it possible to search directly for individual people if you had done this: on the first slide where the classmate's name appears, instead of "Smith" write "@Smith", then format the "@" to be 0% opaque (100% transparent), so it's not seen. Then, you could FIND "@Smi", or whatever. -
Does anyone know how to export a specific slide or all slides as an image (png, jpg)? I would rather not have to write a script that uses the GUI to export the images, I want to do it be able to do it by interfacing with keynote directly and not having any windows in the program pop open. Is there any way to do this with Applescript or any other way to automate this programatically?
Thanksdragging slides from Keynote to iPhoto does not work for me, iPhoto won't accept them and does not recognise the format.
Mac Book Pro Mac OS X (10.4.8) I also have a iMac G5 1.8 Ghz, and a G4 Mac mini -
I would like to export keynote slides to use in a podcast. Does anyone know an easy way to get the slide to resize to about 300x300?
G5 Mac OS X (10.4.8)many podcast apps will do the resize for you, or you can do what I do: set up an Automator droplet that resizes all images dropped on it to 300byX (sometimes the other measurement is smaller than 300, but never larger). It then saves them all as jpegs.
It was fairly easy to setup as the finder actually can do the resizing, so everything you need already comes with Automator, there's no need to install other scripts.
Maybe you are looking for
-
For the love of Jeebus, please tell me I am missing something with PP's janky audio workflow
OK, I've read the help docs, gone through the tutorials, watched the videos. Still I am not finding an efficient workflow for dealing with audio in PP. Let's face it, audio in 5.5 was completely baffling to us newbies jumping ship from FCP 7, and I
-
PDF has missing text when created from FM 9
My Software: Windows XP Professional Version 2002 SP 3 FrameMaker 9.0p255 Adobe Acrobat 9 Pro Version 9.4.1 When generating a PDF document from FrameMaker, the PDF document has random missing text, including whole paragraphs, sentences and some text
-
Error when configuring HSS 9.3.1
Hi, I am trying to install essbase 9.3.1 on my laptop. For some reason the connection to the SQL repository cannot be found. I get the general error Unable to connect to the database for the product hyperion shared services I had previously installed
-
Insert CLOB into oracle under weblogic
Situation: running my servlet under weblogic, want to insert more than 4000 characters into CLOB of oracle 8.1.7 Problem: cannot be done by using code which is able to do it under tomcat i use this code in tomcat: import java.sql.*; import oracle.sql
-
Retina MacBook Pro Screen Flickering
I've experienced screen flickering three times in the last week on my month old MacBook Pro with Retina Display. Each time it's happened I've had either Safari or Chrome running flash. The flickering gets worse when trying to jump to a certain time o