text
stringlengths
0
15.7k
source
stringlengths
6
112
set the_issue to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_reference to mdreference of customMD
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_reference to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_keywords to mdkeywords of customMD
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_keywords to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_volume to mdvolume of customMD
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_volume to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_place to mdplace of customMD
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_place to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
try -- in case volume is present
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_volume to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if the_volume is not "" then
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_volume to " (" & the_volume & ")"
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_article to the_authors & "; " & the_title & ". In: " & the_journal & " " & ref_volume & the_issue & ", " & the_date & "." & " Pp." & the_page
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_translator to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_editor to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if the_translator is not "" then
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_translator to "Trad.: " & the_translator & ". "
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if the_editor is not "" then
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_editor to "Ed.: " & the_editor & ". "
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
try -- the book ref
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set ref_book to the_authors & "; " & the_title & ". " & ref_editor & ref_translator & the_place & ": " & the_publisher & ", " & the_date
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if the_type is "Article" then
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_ref to ref_article
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if the_type is "Book" then
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the_ref to ref_book
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
add custom meta data the_ref for "reference" to this_item
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set name of this_item to the_ref as text
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the aliases of this_item to the_bibkey
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if the_keywords is not "" then
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set theTags to text items of the_keywords
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
set the mdkeywords of customMD to ""
Add%20Reference%20Smart%20Rule%20for%20DT3.scpt
if application "Google Chrome" is running then
incognitoGoogleChrome.scpt
tell application "Google Chrome" to make new window with properties {mode:"incognito"}
incognitoGoogleChrome.scpt
do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito" -- Fallback command
incognitoGoogleChrome.scpt
set is_ac_power to do shell script "pmset -g batt | grep -q 'AC Power' && echo 1 || echo 0"
is_ac_power.applescript
return ("1" = is_ac_power)
is_ac_power.applescript
on getShuffleType() -- the return value is a string: Off/By Songs/By Albums/By Groupings
shuffle.applescript
tell process "iTunes"
shuffle.applescript
set menuItems to menu items of menu bar 1's menu bar item "Controls"'s menu 1's menu item "Shuffle"'s menu 1
shuffle.applescript
set onOffItemName to name of item 1 of menuItems
shuffle.applescript
if onOffItemName contains " on " then return "Off"
shuffle.applescript
set currentChoice to "Unknown"
shuffle.applescript
repeat with i from 2 to count of menuItems
shuffle.applescript
set anItem to item i of menuItems
shuffle.applescript
set theResult to value of attribute "AXMenuItemMarkChar" of anItem
shuffle.applescript
if theResult is not "" then
shuffle.applescript
set currentChoice to name of anItem
shuffle.applescript
return currentChoice
shuffle.applescript
end getShuffleType
shuffle.applescript
on setShuffleType(shuffleType) -- shuffleType is a string: Off/By Songs/By Albums/By Groupings
shuffle.applescript
set currentValue to my getShuffleType()
shuffle.applescript
script subs
shuffle.applescript
on toggleShuffleOnOff()
shuffle.applescript
tell application "System Events" to perform action "AXPress" of (first menu item of process "iTunes"'s menu bar 1's menu bar item "Controls"'s menu 1's menu item "Shuffle"'s menu 1 whose name ends with "Shuffle")
shuffle.applescript
end toggleShuffleOnOff
shuffle.applescript
on pressBySongs()
shuffle.applescript
tell application "System Events" to perform action "AXPress" of (first menu item of process "iTunes"'s menu bar 1's menu bar item "Controls"'s menu 1's menu item "Shuffle"'s menu 1 whose name ends with "Songs")
shuffle.applescript
end pressBySongs
shuffle.applescript
on pressByAlbums()
shuffle.applescript
tell application "System Events" to perform action "AXPress" of (first menu item of process "iTunes"'s menu bar 1's menu bar item "Controls"'s menu 1's menu item "Shuffle"'s menu 1 whose name ends with "Albums")
shuffle.applescript
end pressByAlbums
shuffle.applescript
on pressByGroupings()
shuffle.applescript
tell application "System Events" to perform action "AXPress" of (first menu item of process "iTunes"'s menu bar 1's menu bar item "Controls"'s menu 1's menu item "Shuffle"'s menu 1 whose name ends with "Groupings")
shuffle.applescript
end pressByGroupings
shuffle.applescript
if shuffleType contains "off" then -- we have to make sure it's off
shuffle.applescript
if currentValue does not contain "off" then subs's toggleShuffleOnOff()
shuffle.applescript
if currentValue contains "off" then subs's toggleShuffleOnOff()
shuffle.applescript
if shuffleType contains "song" and currentValue does not contain "song" then
shuffle.applescript
subs's pressBySongs()
shuffle.applescript
else if shuffleType contains "album" and currentValue does not contain "album" then
shuffle.applescript
subs's pressByAlbums()
shuffle.applescript
else if shuffleType contains "group" and currentValue does not contain "group" then
shuffle.applescript
subs's pressByGroupings()
shuffle.applescript
end setShuffleType
shuffle.applescript
setShuffleType("Off")
shuffle.applescript
delay 0.85
shuffle.applescript
setShuffleType("By Songs")
shuffle.applescript
GNU GENERAL PUBLIC LICENSE
LICENSE-GPL.scpt
Version 3, 29 June 2007
LICENSE-GPL.scpt
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
LICENSE-GPL.scpt
Everyone is permitted to copy and distribute verbatim copies
LICENSE-GPL.scpt
of this license document, but changing it is not allowed.
LICENSE-GPL.scpt
Preamble
LICENSE-GPL.scpt
The GNU General Public License is a free, copyleft license for
LICENSE-GPL.scpt
software and other kinds of works.
LICENSE-GPL.scpt
The licenses for most software and other practical works are designed
LICENSE-GPL.scpt
to take away your freedom to share and change the works. By contrast,
LICENSE-GPL.scpt
the GNU General Public License is intended to guarantee your freedom to
LICENSE-GPL.scpt
share and change all versions of a program--to make sure it remains free
LICENSE-GPL.scpt
software for all its users. We, the Free Software Foundation, use the
LICENSE-GPL.scpt
GNU General Public License for most of our software; it applies also to
LICENSE-GPL.scpt
any other work released this way by its authors. You can apply it to
LICENSE-GPL.scpt
your programs, too.
LICENSE-GPL.scpt
When we speak of free software, we are referring to freedom, not
LICENSE-GPL.scpt
price. Our General Public Licenses are designed to make sure that you
LICENSE-GPL.scpt
have the freedom to distribute copies of free software (and charge for
LICENSE-GPL.scpt
them if you wish), that you receive source code or can get it if you
LICENSE-GPL.scpt
want it, that you can change the software or use pieces of it in new
LICENSE-GPL.scpt
free programs, and that you know you can do these things.
LICENSE-GPL.scpt