On Jan 6, 2015, at 0:55, <[email protected]> <[email protected]> wrote:

> I want a Mac to sit there and scroll through a set of (one-page) PDFs, each 
> displaying in full-screen mode for five seconds or so. I don’t know how to 
> make an AppleScript do this. I’m asking for coding help.
> 
> My first tell block works correctly. My second one doesn’t. I have played 
> with the second one for hours.
> 
> Thanks.
> 
> Bruce
> 
> 
> From: Christiaan Hofman
> Sent: ‎Monday‎, ‎January‎ ‎5‎, ‎2015 ‎3‎:‎50‎ ‎PM
> To: [email protected]
> 
> 
> On Jan 6, 2015, at 0:34, <[email protected]> <[email protected]> wrote:
> 
> I'm a new Skim user AND a newbie AppleScript user (~10 hours research and
> practice). I have lots of experience with JavaScript and various scripting
> languages (Windows, Unix, VMS). I'm reaching out to experienced users of
> scripts on Macs.
> 
> I want to run the following script:
> 
> Standalone MacBook displays a series of PDFs in full-screen mode.
> Keyboard is hidden. No touchscreen. Mac is plugged in.
> PDFs are on Mac's hard drive. (No networking needed.)
> I don't care about hard-coding file/path names. (I can add variables later.)
> Optional: Script starts on startup.
> 
> The following script opens two PDFs in Skim and then does nothing else
> (with no errors).
> 
> tell application "Skim"
>  open "Macintosh HD:Users:brhodewalt:Documents:PDFs:samplep1.pdf"
>  open "Macintosh HD:Users:brhodewalt:Documents:PDFs:samplep2.pdf"
> end tell
> 
> tell application "System Events" to tell process "Skim"
>  click menu bar item 1 of menu bar 1
> end tell
> 
> 
> Mac OS X 10.7.5
> Skim 1.4.10
> 
> Thank you for any help.
> Bruce
> ​
> 
> It is not clear to me what your question is. It is also not really clear to 
> me what you want to achieve.
> 
> Christiaan


Using UI scripting only works after you've activated the app, so you should 
send and "activate" message to the app first.

Christiaan

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to