text
stringlengths
0
15.7k
source
stringlengths
6
112
tell picture box 1 of page i
Boxes -move imageboxes.applescript
set yheight to height of bounds
Boxes -move imageboxes.applescript
set xwidth to width of bounds
Boxes -move imageboxes.applescript
set left of bounds to (word 1 of cBoxBounds as integer)
Boxes -move imageboxes.applescript
set top of bounds to (word 2 of cBoxBounds as integer)
Boxes -move imageboxes.applescript
set height of bounds to yheight
Boxes -move imageboxes.applescript
set width of bounds to xwidth
Boxes -move imageboxes.applescript
fmGUI_ManageDb_GoToTab_Relationships({})
fmGUI_ManageDb_GoToTab_Relationships.applescript
on fmGUI_ManageDb_GoToTab_Relationships(prefs)
fmGUI_ManageDb_GoToTab_Relationships.applescript
fmGUI_ManageDb_GoToTab({tabName:"Relationships"})
fmGUI_ManageDb_GoToTab_Relationships.applescript
end fmGUI_ManageDb_GoToTab_Relationships
fmGUI_ManageDb_GoToTab_Relationships.applescript
on fmGUI_ManageDb_GoToTab(prefs)
fmGUI_ManageDb_GoToTab_Relationships.applescript
tell application "htcLib" to fmGUI_ManageDb_GoToTab(prefs)
fmGUI_ManageDb_GoToTab_Relationships.applescript
end fmGUI_ManageDb_GoToTab
fmGUI_ManageDb_GoToTab_Relationships.applescript
set totalPlays to 0
Combine Play Count.applescript
set songList to ""
Combine Play Count.applescript
display alert "Combine play count or sync play count?" buttons {"Cancel", "Combine", "Sync"} cancel button 1
Combine Play Count.applescript
if button returned of result is "Combine" then
Combine Play Count.applescript
set sel to selection
Combine Play Count.applescript
repeat with i from 1 to count items in sel
Combine Play Count.applescript
set thisSong to (item i of sel)
Combine Play Count.applescript
set thisPlaycount to (played count of thisSong)
Combine Play Count.applescript
set totalPlays to totalPlays + thisPlaycount
Combine Play Count.applescript
set songList to songList & return & "\"" & (name of thisSong as text) & "\" on " & (artist of thisSong as text) & "'s album \"" & (album of thisSong as text) & "\"" & return
Combine Play Count.applescript
display alert "The play count of these songs will be each set to their combined count (" & totalPlays & "):" message songList buttons {"Cancel", "OK"} cancel button 1
Combine Play Count.applescript
if button returned of result is "OK" then
Combine Play Count.applescript
set played count of item i of sel to totalPlays
Combine Play Count.applescript
else if button returned of result is "Sync" then
Combine Play Count.applescript
if thisPlaycount > totalPlays then
Combine Play Count.applescript
set totalPlays to thisPlaycount
Combine Play Count.applescript
display alert "The play count of these songs will be each set to the highest play count of the set (" & totalPlays & "):" message songList buttons {"Cancel", "OK"} cancel button 1
Combine Play Count.applescript
global listOfSmallApps, listOfLargeApps, listOfXLargeApps, standardSizeXLarge, standardSizeLarge, standardSizeSmall, finderSidebarSize, scriptName, plistFile
resizeWindow.applescript
on setUpGlobals()
resizeWindow.applescript
set standardSizeSmall to {height:0.6, width:0.6}
resizeWindow.applescript
set standardSizeLarge to {height:0.8, width:0.75}
resizeWindow.applescript
set standardSizeXLarge to {height:0.9, width:0.85}
resizeWindow.applescript
set finderSidebarSize to 205
resizeWindow.applescript
set scriptName to "CenterWindow.applescript"
resizeWindow.applescript
set plistFile to (path to preferences folder from user domain)'s POSIX path & "com.saturnfive.resizewindow.plist"
resizeWindow.applescript
loadPlistFile()
resizeWindow.applescript
end setUpGlobals
resizeWindow.applescript
on resizeWindow(appName)
resizeWindow.applescript
if appName is not in listOfSmallApps and appName is not in listOfLargeApps and appName is not in listOfXLargeApps then
resizeWindow.applescript
setNewAppSettings(appName)
resizeWindow.applescript
if listOfSmallApps contains appName then
resizeWindow.applescript
if width of standardSizeSmall is less than or equal to 1 then
resizeWindow.applescript
set preferedWidth to (width of getDesktopBounds()) * (width of standardSizeSmall)
resizeWindow.applescript
set preferedWidth to width of standardSizeSmall
resizeWindow.applescript
if height of standardSizeSmall is less than or equal to 1 then
resizeWindow.applescript
set preferedHeight to (height of getDesktopBounds()) * (height of standardSizeSmall)
resizeWindow.applescript
set preferedHeight to height of standardSizeSmall
resizeWindow.applescript
else if listOfLargeApps contains appName then
resizeWindow.applescript
if width of standardSizeLarge is less than or equal to 1 then
resizeWindow.applescript
set preferedWidth to (width of getDesktopBounds()) * (width of standardSizeLarge)
resizeWindow.applescript
set preferedWidth to width of standardSizeLarge
resizeWindow.applescript
if height of standardSizeLarge is less than or equal to 1 then
resizeWindow.applescript
set preferedHeight to (height of getDesktopBounds() - getDockDimensions()) * (height of standardSizeLarge)
resizeWindow.applescript
set preferedHeight to height of standardSizeLarge
resizeWindow.applescript
else if listOfXLargeApps contains appName then
resizeWindow.applescript
if width of standardSizeXLarge is less than or equal to 1 then
resizeWindow.applescript
set preferedWidth to (width of getDesktopBounds()) * (width of standardSizeXLarge)
resizeWindow.applescript
set preferedWidth to width of standardSizeXLarge
resizeWindow.applescript
if height of standardSizeXLarge is less than or equal to 1 then
resizeWindow.applescript
set preferedHeight to (height of getDesktopBounds() - getDockDimensions()) * (height of standardSizeXLarge)
resizeWindow.applescript
set preferedHeight to height of standardSizeXLarge
resizeWindow.applescript
tell application appName to set appBounds to (get bounds of first window)
resizeWindow.applescript
set appX to (item 1 of appBounds)
resizeWindow.applescript
set appY to (item 2 of appBounds)
resizeWindow.applescript
set appW to (item 1 of appBounds) + preferedWidth
resizeWindow.applescript
set appH to (item 2 of appBounds) + preferedHeight
resizeWindow.applescript
set newBounds to {appX, appY, appW, appH}
resizeWindow.applescript
tell application appName to set bounds of first window to newBounds
resizeWindow.applescript
set newBounds to {preferedWidth, preferedHeight}
resizeWindow.applescript
delay 0.2 -- Catch your breath, man.
resizeWindow.applescript
tell application "System Events" to tell application process appName to tell window 1 to set size to newBounds
resizeWindow.applescript
display alert "Resize Window" message "App " & appName & " is not supported." as warning
resizeWindow.applescript
if appName is "Finder" then
resizeWindow.applescript
tell application "Finder" to set sidebar width of first window to finderSidebarSize
resizeWindow.applescript
end resizeWindow
resizeWindow.applescript
on getDesktopBounds()
resizeWindow.applescript
tell application "Finder" to set desktopBounds to bounds of window of desktop
resizeWindow.applescript
set desktopWidth to (item 3 of desktopBounds) - (item 1 of desktopBounds)
resizeWindow.applescript
set desktopHeight to (item 4 of desktopBounds) - (item 2 of desktopBounds)
resizeWindow.applescript
return {width:desktopWidth, height:desktopHeight}
resizeWindow.applescript
end getDesktopBounds
resizeWindow.applescript
on centerWindow()
resizeWindow.applescript
set scriptFolder to (container of (path to me as alias))
resizeWindow.applescript
set centerScript to POSIX path of ((scriptFolder as text) & scriptName)
resizeWindow.applescript
run script (centerScript as POSIX file)
resizeWindow.applescript
end centerWindow
resizeWindow.applescript
on setNewAppSettings(appName)
resizeWindow.applescript
set optionList to {"Small", "Large", "XLarge"}
resizeWindow.applescript
set selectedSize to choose from list optionList with prompt "Choose what size " & appName & " should be set to"
resizeWindow.applescript
if selectedSize is false then
resizeWindow.applescript
if first item of selectedSize = "Small" then
resizeWindow.applescript
set end of listOfSmallApps to appName
resizeWindow.applescript
else if first item of selectedSize = "Large" then
resizeWindow.applescript
set end of listOfLargeApps to appName
resizeWindow.applescript
else if first item of selectedSize = "XLarge" then
resizeWindow.applescript
set end of listOfXLargeApps to appName
resizeWindow.applescript