-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2170bcd
Showing
36 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
Current Track Stuff/Current Track - Back 30 Seconds.applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
tell application "iTunes" | ||
if player state is playing then | ||
--get the current track time: | ||
set currTime to get player position | ||
if currTime < 30 then | ||
--go to start of the track: | ||
set currSkip to 0 | ||
else | ||
--otherwise, skip backwards | ||
set currSkip to currTime - 30 | ||
end if | ||
|
||
set player position to currSkip --skip to new position | ||
end if | ||
|
||
end tell |
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
Current Track Stuff/Current Track - Skip 30 Seconds.applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
tell application "iTunes" | ||
if player state is playing then | ||
-- length of current track: | ||
set trackTime to duration of current track | ||
--get the current position time: | ||
set currTime to get player position | ||
set currSkip to currTime + 30 | ||
|
||
-- checks if new position is greater than | ||
-- length of track, and corrects it if it is: | ||
if currSkip > trackTime then | ||
set currSkip to trackTime | ||
end if | ||
|
||
set player position to currSkip --skip to new position | ||
end if | ||
end tell |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.