Skip to content

Commit

Permalink
don't iterate over every doc in app documents
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed Jun 14, 2014
1 parent d406e00 commit 30bb711
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions OSX/DeckRocket/deckrocket.scpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on run argv
set idx to item 1 of argv
if application "Deckset" is running
tell application "Deckset"
repeat with doc in documents
tell doc
set slideIndex to idx
end tell
end repeat
tell first item of documents
set slideIndex to idx
end tell
end tell
end if
end run

0 comments on commit 30bb711

Please sign in to comment.