text
stringlengths
0
15.7k
source
stringlengths
6
112
end newLogManager
logManager.applescript
make new folder at folder "Desktop" of folder "smerth" of folder "Users" of folder "Macintosh HD" with properties {name:"My_Super_Folder"}
005_03_files_and_folders-path_property.applescript
tell application "Aperture"
keywords from location.applescript
set imageSel to selection
keywords from location.applescript
repeat with i from 1 to count of imageSel
keywords from location.applescript
tell library 1
keywords from location.applescript
tell item i of imageSel
keywords from location.applescript
set lat to get latitude
keywords from location.applescript
set long to get longitude
keywords from location.applescript
if (long is missing value) or (lat is missing value) then
keywords from location.applescript
display dialog "Please select a geotagged image" with title "GPS data missing" buttons {"Okay"}
keywords from location.applescript
set lat to my set_decimal_delimiter_to_dot(lat as string)
keywords from location.applescript
set long to my set_decimal_delimiter_to_dot(long as string)
keywords from location.applescript
tell application "JSON Helper"
keywords from location.applescript
set reverse_geocode_request to fetch JSON from ("http://maps.googleapis.com/maps/api/geocode/json?latlng=" & lat & "," & long & "&sensor=false")
keywords from location.applescript
set address_components to get address_components of item 1 of results of reverse_geocode_request
keywords from location.applescript
set address_components_list to {}
keywords from location.applescript
repeat with j from 1 to count of address_components
keywords from location.applescript
if item 1 of |types| of item j of address_components is in {"route", "sublocality", "locality", "administrative_area_level_1", "country"} then
keywords from location.applescript
copy long_name of item j of address_components to beginning of address_components_list --adding them at the beginning, sorts locations from general to specific
keywords from location.applescript
repeat with k from 1 to count of address_components_list
keywords from location.applescript
set parents_list to {}
keywords from location.applescript
repeat with l from 1 to (k - 1)
keywords from location.applescript
copy item (k - l) of address_components_list to end of parents_list
keywords from location.applescript
set AppleScript's text item delimiters to " "
keywords from location.applescript
make new keyword with properties {name:item k of address_components_list, parents:parents_list as string}
keywords from location.applescript
on set_decimal_delimiter_to_dot(this_text)
keywords from location.applescript
set the text_items to every text item of this_text
keywords from location.applescript
set this_text to the text_items as string
keywords from location.applescript
end set_decimal_delimiter_to_dot
keywords from location.applescript
fmGUI_ScriptDebugger_Close()
fmGUI_ScriptDebugger_Close.applescript
on fmGUI_ScriptDebugger_Close()
fmGUI_ScriptDebugger_Close.applescript
tell process "FileMaker Pro Advanced"
fmGUI_ScriptDebugger_Close.applescript
click (first button of (first window whose name is "Script Debugger") whose name is not "Copy Script Text")
fmGUI_ScriptDebugger_Close.applescript
end fmGUI_ScriptDebugger_Close
fmGUI_ScriptDebugger_Close.applescript
tell application "htcLib" to fmGUI_AppFrontMost()
fmGUI_ScriptDebugger_Close.applescript
use framework "AppKit"
Move%20Google%20Chrome%20Windows.applescript
set primaryScreenFrame to current application's NSScreen's screens()'s firstObject()'s frame()
Move%20Google%20Chrome%20Windows.applescript
set primaryScreenLeft to (item 1 of item 1 of primaryScreenFrame)
Move%20Google%20Chrome%20Windows.applescript
set primaryScreenRight to (primaryScreenLeft) + (item 1 of item 2 of primaryScreenFrame)
Move%20Google%20Chrome%20Windows.applescript
set primaryScreenTop to (item 2 of item 1 of primaryScreenFrame)
Move%20Google%20Chrome%20Windows.applescript
set primaryScreenBottom to (primaryScreenTop) + (item 2 of item 2 of primaryScreenFrame)
Move%20Google%20Chrome%20Windows.applescript
global primaryScreenLeft
Move%20Google%20Chrome%20Windows.applescript
global primaryScreenRight
Move%20Google%20Chrome%20Windows.applescript
global primaryScreenTop
Move%20Google%20Chrome%20Windows.applescript
global primaryScreenBottom
Move%20Google%20Chrome%20Windows.applescript
tell application "System Events" to tell application process "Google Chrome"
Move%20Google%20Chrome%20Windows.applescript
repeat with i from 1 to (count of windows)
Move%20Google%20Chrome%20Windows.applescript
set iWindow to window i
Move%20Google%20Chrome%20Windows.applescript
moveRight(iWindow) of me
Move%20Google%20Chrome%20Windows.applescript
on moveRight(iWindow)
Move%20Google%20Chrome%20Windows.applescript
tell iWindow
Move%20Google%20Chrome%20Windows.applescript
set {winLeft, winTop} to position
Move%20Google%20Chrome%20Windows.applescript
set {winWidth, winHeight} to size
Move%20Google%20Chrome%20Windows.applescript
set position of iWindow to {primaryScreenRight * 0.42, 0}
Move%20Google%20Chrome%20Windows.applescript
set size of iWindow to {primaryScreenRight * 0.58, primaryScreenBottom}
Move%20Google%20Chrome%20Windows.applescript
end moveRight
Move%20Google%20Chrome%20Windows.applescript
tell application "Contacts"
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set o to display dialog "Do you want to add Group(s), remove Group(s) or remove duplicate records from Contacts Notes?" buttons {"Add", "Remove", "Duplicates"} default button "Add"
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if the button returned of o is "Add" then
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set c to display dialog "Do you want to change all Contacts or just the selected Contact?" buttons {"All", "Selected"} default button "Selected"
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if the button returned of c is "Selected" then
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set thePeople to selection
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set thePeople to people
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
repeat with aPerson in thePeople
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set oldNotes to note of aPerson
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set theGroups to {}
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
repeat with aGroup in (groups whose people contains aPerson)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set theGroups to theGroups & (name of aGroup)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if theGroups is not {} then
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set AppleScript's text item delimiters to ", "
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if oldNotes is not missing value then
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set note of aPerson to oldNotes & return & "Groups: " & (theGroups as string)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set note of aPerson to "Groups: " & (text items of theGroups as string)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
save
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
else if the button returned of o is "Remove" then
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
repeat with i in thePeople
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set fileText to note of i
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set thisNote to note of i
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if thisNote is not missing value then set note of i to my deleteLinesFromText(thisNote)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if thisNote is not missing value then set note of i to my removeDuplicateLines(thisNote)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
on deleteLinesFromText(theText)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set textList to paragraphs of theText
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set deletePhrase to "Group"
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
repeat with i from 1 to (count textList)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if (item i of textList contains deletePhrase) then set item i of textList to missing value
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set astid to AppleScript's text item delimiters
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set newText to textList's text as text
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set AppleScript's text item delimiters to astid
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
end deleteLinesFromText
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
on removeDuplicateLines(t)
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set l to paragraphs of t
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set tc to count l
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if tc = 1 then return t
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set newList to {}
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
repeat with j from 1 to tc
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
if (item j of l) is not in newList then set end of newList to item j of l
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set {oTid, text item delimiters} to {text item delimiters, return}
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set newList to newList as string
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
set text item delimiters to oTid
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript