text
stringlengths
0
15.7k
source
stringlengths
6
112
set myString to myKeyStrings
ColorTool.applescript
set myMenuAction to menu action myString
ColorTool.applescript
repeat with i from (count openDocuments) to 1 by -1
ColorTool.applescript
set theWindow to the first window of openDocuments's item i
ColorTool.applescript
set active window to theWindow
ColorTool.applescript
invoke myMenuAction
ColorTool.applescript
end colorAddUnnamed
ColorTool.applescript
on colorDelete(functionChoice)
ColorTool.applescript
set chosenColorOriginal to choose from list (deduplicatedColorNames) default items chosenColorOriginal with prompt "Farben wählen:" OK button name buttonName with multiple selections allowed
ColorTool.applescript
set chosenColorReplacement to choose from list (deduplicatedColorNames) default items chosenColorReplacement with prompt "Ersatzfarbe wählen:" OK button name buttonName without multiple selections allowed
ColorTool.applescript
set chosenColorReplacement to item 1 of chosenColorReplacement
ColorTool.applescript
repeat with x from 1 to count chosenColorOriginal
ColorTool.applescript
set chosenColorOriginalRepeat to item x of the chosenColorOriginal
ColorTool.applescript
repeat with y from 1 to count openDocuments
ColorTool.applescript
if chosenColorReplacement is "None" then
ColorTool.applescript
set chosenColorReplacementAsSwatch to swatch "None" of openDocuments's item y
ColorTool.applescript
set chosenColorOriginalRepeatAsSwatch to swatch chosenColorOriginalRepeat of openDocuments's item y
ColorTool.applescript
set (fill color of every item of all page items of openDocuments's item y whose fill color is chosenColorOriginalRepeatAsSwatch) to chosenColorReplacementAsSwatch
ColorTool.applescript
set (stroke color of every item of all page items of openDocuments's item y whose stroke color is chosenColorOriginalRepeatAsSwatch) to chosenColorReplacementAsSwatch
ColorTool.applescript
delete chosenColorOriginalRepeatAsSwatch
ColorTool.applescript
merge swatch chosenColorReplacement of item y of openDocuments with swatch chosenColorOriginalRepeat of item y of openDocuments
ColorTool.applescript
end colorDelete
ColorTool.applescript
on textInput()
ColorTool.applescript
display dialog "In was soll die Farbe umbenannt werden?" default answer ""
ColorTool.applescript
set dieAntwort to (text returned of result)
ColorTool.applescript
return dieAntwort
ColorTool.applescript
end textInput
ColorTool.applescript
on colorLoadFromFile(functionChoice)
ColorTool.applescript
display dialog "Farben aus aktuellem Dokument in die anderen laden?" buttons {"Stop", "Weiter"} default button "Weiter"
ColorTool.applescript
repeat with i from 1 to count otherDocuments
ColorTool.applescript
set filePath to full name of active document as string
ColorTool.applescript
tell otherDocuments's item i
ColorTool.applescript
load swatches from filePath
ColorTool.applescript
end colorLoadFromFile
ColorTool.applescript
on colorDistribute(functionChoice)
ColorTool.applescript
set chosenColor to choose from list (deduplicatedColorNames) default items chosenColor with prompt "Farben wählen:" OK button name buttonName with multiple selections allowed
ColorTool.applescript
set swatchListAsSwatches to {}
ColorTool.applescript
repeat with i from 1 to count chosenColor
ColorTool.applescript
set swatchListAsSwatches to swatchListAsSwatches & swatch (chosenColor's item i as string) of activeDocument
ColorTool.applescript
set thePath to (path to me as string)
ColorTool.applescript
set theFile to thePath & ".ase"
ColorTool.applescript
save swatches of active document to theFile swatch list swatchListAsSwatches with force save
ColorTool.applescript
load swatches from theFile
ColorTool.applescript
if exists file theFile then
ColorTool.applescript
delete file theFile -- moves it to the trash
ColorTool.applescript
end colorDistribute
ColorTool.applescript
on displayTheEnd()
ColorTool.applescript
display dialog "Fertig!" buttons "OK" default button "OK" giving up after 1
ColorTool.applescript
end displayTheEnd
ColorTool.applescript
tell application "Spotify" to previous track
spotify_prev.scpt
set _artist to ""
NowPlaying.applescript
set _track to ""
NowPlaying.applescript
if application "Music" is running then
NowPlaying.applescript
set _track to the current track's name
NowPlaying.applescript
set _artist to the current track's artist
NowPlaying.applescript
if _artist = "" and _track = "" and application "Spotify" is running then
NowPlaying.applescript
if _artist = "" and _track = "" then
NowPlaying.applescript
tell application "Adium" to go available
NowPlaying.applescript
tell application "Adium" to go available with message _artist & " - " & _track
NowPlaying.applescript
repeat with eachPerson in people
actualiza.scpt
repeat with eachNumber in phones of eachPerson
actualiza.scpt
set temp to (get value of eachNumber)
actualiza.scpt
set theNum to my replace_chars(my replace_chars(my replace_chars(temp, " ", ""), "(", ""), ")", "")
actualiza.scpt
if length of temp is greater than 5 then
actualiza.scpt
if theNum starts with "+521" then
actualiza.scpt
set newNum to "+52" & (get text 5 thru (length of theNum) of theNum)
actualiza.scpt
log temp & " -> " & newNum
actualiza.scpt
set value of eachNumber to newNum
actualiza.scpt
else if theNum starts with "044" then
actualiza.scpt
set newNum to "+52" & (get text 4 thru (length of theNum) of theNum)
actualiza.scpt
open location "https://github.com/search?q=" & argv
github.applescript
fmGUI_Database_TOsOfFrontWindow({})
fmGUI_Database_TOsOfFrontWindow.applescript
on fmGUI_Database_TOsOfFrontWindow(prefs)
fmGUI_Database_TOsOfFrontWindow.applescript
return namesOfTOsOfWindowName(fmGUI_NameOfFrontmostWindow())
fmGUI_Database_TOsOfFrontWindow.applescript
error "Couldn't get fmGUI_Database_TOsOfFrontWindow - " & errMsg number errNum
fmGUI_Database_TOsOfFrontWindow.applescript
end fmGUI_Database_TOsOfFrontWindow
fmGUI_Database_TOsOfFrontWindow.applescript
on namesOfTOsOfWindowName(prefs)
fmGUI_Database_TOsOfFrontWindow.applescript
tell application "htcLib" to namesOfTOsOfWindowName(prefs)
fmGUI_Database_TOsOfFrontWindow.applescript
end namesOfTOsOfWindowName
fmGUI_Database_TOsOfFrontWindow.applescript
property wordList : {"doc", "docx"}
ConvertWordPowerPointToPDF.scpt
property pptList : {"ppt", "pptx"}
ConvertWordPowerPointToPDF.scpt
repeat with x in input
ConvertWordPowerPointToPDF.scpt
set f to contents of x
ConvertWordPowerPointToPDF.scpt
set ext to name extension of f
ConvertWordPowerPointToPDF.scpt
if ext is in wordList then
ConvertWordPowerPointToPDF.scpt
if ext is in pptList then
ConvertWordPowerPointToPDF.scpt
tell application "Microsoft PowerPoint"
ConvertWordPowerPointToPDF.scpt
set theOutput to {}
ConvertWordPowerPointToPDF.scpt
tell application "Microsoft PowerPoint" -- work on version 15.15 or newer
ConvertWordPowerPointToPDF.scpt
repeat with i in input
ConvertWordPowerPointToPDF.scpt
set t to i as string
ConvertWordPowerPointToPDF.scpt
if t ends with ".ppt" or t ends with ".pptx" then
ConvertWordPowerPointToPDF.scpt
set pdfPath to my makeNewPath(i)
ConvertWordPowerPointToPDF.scpt
open i
ConvertWordPowerPointToPDF.scpt
save active presentation in pdfPath as save as PDF -- save in same folder
ConvertWordPowerPointToPDF.scpt
set end of theOutput to pdfPath as alias
ConvertWordPowerPointToPDF.scpt
tell application "Microsoft Word" -- work on version 15.15 or newer
ConvertWordPowerPointToPDF.scpt
if t ends with ".doc" or t ends with ".docx" then
ConvertWordPowerPointToPDF.scpt
set doc to name of active window
ConvertWordPowerPointToPDF.scpt
set theOutputPath to pdfPath
ConvertWordPowerPointToPDF.scpt