On Jan 6, 2015, at 3:40, <[email protected]> <[email protected]> wrote:
> Thank you. That was exactly what it needed.
>
> Still missing one piece. Here’s how it’s going (pseudocode):
>
> 1: Open both PDFs.
> 2: Set front PDF to full-screen.
> 3: Wait 3 seconds.
> 4: “Reopen” other PDF (bringing it to the front).
> 5: Set new front PDF to full-screen.
>
> I want to combine Steps 4 and 5 so we don’t see the un-maximized window that
> results in Step 4.
>
> It seems as if I want a command in Skim that will replace the current
> full-screen document with another document. I’ve been through the dictionary
> and other sources, and I don’t see it.
>
> Thanks for your help.
>
> Bruce
>
Couldn't you do step 4, or perhaps close the first document, after making the
second document full screen? So make the second document full screen behind the
first?
set interaction mode of document 2 to full screen mode
close document 1
Christiaan
>
> From: Christiaan Hofman
> Sent: Monday, January 5, 2015 4:17 PM
> To: [email protected]
>
>
> 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