text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
Copyright (C) <year> <name of author>
|
LICENSE-GPL.scpt
|
This program is free software: you can redistribute it and/or modify
|
LICENSE-GPL.scpt
|
it under the terms of the GNU General Public License as published by
|
LICENSE-GPL.scpt
|
the Free Software Foundation, either version 3 of the License, or
|
LICENSE-GPL.scpt
|
(at your option) any later version.
|
LICENSE-GPL.scpt
|
This program is distributed in the hope that it will be useful,
|
LICENSE-GPL.scpt
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
LICENSE-GPL.scpt
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
LICENSE-GPL.scpt
|
GNU General Public License for more details.
|
LICENSE-GPL.scpt
|
You should have received a copy of the GNU General Public License
|
LICENSE-GPL.scpt
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
LICENSE-GPL.scpt
|
Also add information on how to contact you by electronic and paper mail.
|
LICENSE-GPL.scpt
|
If the program does terminal interaction, make it output a short
|
LICENSE-GPL.scpt
|
notice like this when it starts in an interactive mode:
|
LICENSE-GPL.scpt
|
<program> Copyright (C) <year> <name of author>
|
LICENSE-GPL.scpt
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
LICENSE-GPL.scpt
|
This is free software, and you are welcome to redistribute it
|
LICENSE-GPL.scpt
|
under certain conditions; type `show c' for details.
|
LICENSE-GPL.scpt
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
LICENSE-GPL.scpt
|
parts of the General Public License. Of course, your program's commands
|
LICENSE-GPL.scpt
|
might be different; for a GUI interface, you would use an "about box".
|
LICENSE-GPL.scpt
|
You should also get your employer (if you work as a programmer) or school,
|
LICENSE-GPL.scpt
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
LICENSE-GPL.scpt
|
For more information on this, and how to apply and follow the GNU GPL, see
|
LICENSE-GPL.scpt
|
<https://www.gnu.org/licenses/>.
|
LICENSE-GPL.scpt
|
The GNU General Public License does not permit incorporating your program
|
LICENSE-GPL.scpt
|
into proprietary programs. If your program is a subroutine library, you
|
LICENSE-GPL.scpt
|
may consider it more useful to permit linking proprietary applications with
|
LICENSE-GPL.scpt
|
the library. If this is what you want to do, use the GNU Lesser General
|
LICENSE-GPL.scpt
|
Public License instead of this License. But first, please read
|
LICENSE-GPL.scpt
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
LICENSE-GPL.scpt
|
set p to "/usr/local/bin/"
|
applescript-n-posix-paths.scpt
|
set a to POSIX file p
|
applescript-n-posix-paths.scpt
|
set a to "Macintosh HD:usr:local:bin:"
|
applescript-n-posix-paths.scpt
|
set p to POSIX path of a
|
applescript-n-posix-paths.scpt
|
set a to alias "Macintosh HD:usr:local:bin:"
|
applescript-n-posix-paths.scpt
|
set a to file "Macintosh HD:usr:local:bin:"
|
applescript-n-posix-paths.scpt
|
set cornerRight to get_number_variable "cornerRight"
|
CornerRightTowards.applescript
|
if cornerRight is equal to 3.0 then set cornerRight to 0.0
|
CornerRightTowards.applescript
|
if cornerRight is equal to 1.0
|
CornerRightTowards.applescript
|
set cornerRight to 2.0
|
CornerRightTowards.applescript
|
tell application "System Events" to key code 103
|
CornerRightTowards.applescript
|
if cornerRight is equal to 2.0
|
CornerRightTowards.applescript
|
set_number_variable "cornerRight" to 3.0
|
CornerRightTowards.applescript
|
set_number_variable "cornerRight" to 0.0
|
CornerRightTowards.applescript
|
on random_number(from_number, to_number)
|
NumberParser.applescript
|
return random number from from_number to to_number
|
NumberParser.applescript
|
end random_number
|
NumberParser.applescript
|
property iPhoneImageFiles : {}
|
Re-profile images.applescript
|
on open dropped_files
|
Re-profile images.applescript
|
set iPhoneImageFiles to iPhoneImageFiles & dropped_files
|
Re-profile images.applescript
|
set ct to the count of iPhoneImageFiles
|
Re-profile images.applescript
|
if ct = 1 then
|
Re-profile images.applescript
|
display alert "No point!" message "This process requires more than one file to work on." as critical giving up after 30
|
Re-profile images.applescript
|
set foundProfile to false
|
Re-profile images.applescript
|
set fixList to {}
|
Re-profile images.applescript
|
set profileList to {}
|
Re-profile images.applescript
|
repeat with imageFile in (iPhoneImageFiles)
|
Re-profile images.applescript
|
set i to open imageFile
|
Re-profile images.applescript
|
set prof to the name of the embedded profile of i
|
Re-profile images.applescript
|
set profileList to profileList & imageFile
|
Re-profile images.applescript
|
set foundProfile to true
|
Re-profile images.applescript
|
set prof to ""
|
Re-profile images.applescript
|
set fixList to fixList & imageFile
|
Re-profile images.applescript
|
close i
|
Re-profile images.applescript
|
if (count of fixList) = 0 then
|
Re-profile images.applescript
|
display alert "All good!" message "There are no files missing profiles." as critical giving up after 30
|
Re-profile images.applescript
|
if foundProfile then
|
Re-profile images.applescript
|
set ct to the count of profileList
|
Re-profile images.applescript
|
if ct > 1 then
|
Re-profile images.applescript
|
set profilePick to choose from list profileList with prompt "Select the file whose profile you want to use:"
|
Re-profile images.applescript
|
set profilePick to item 1 of profileList
|
Re-profile images.applescript
|
set profilePick to the quoted form of the POSIX path of profilePick
|
Re-profile images.applescript
|
do shell script ("/opt/homebrew/bin/magick " & profilePick & " $TMPDIR/profile.icc")
|
Re-profile images.applescript
|
display alert "Problem with imagemagick getting profile" message (errNum as string) & ": " & errMsg
|
Re-profile images.applescript
|
repeat with imageFile in fixList
|
Re-profile images.applescript
|
set filename to the quoted form of the POSIX path of imageFile
|
Re-profile images.applescript
|
do shell script ("/opt/homebrew/bin/magick mogrify" & " -profile $TMPDIR/profile.icc " & filename)
|
Re-profile images.applescript
|
display alert "Problem with imagemagick writing profile" message (errNum as string) & ": " & errMsg
|
Re-profile images.applescript
|
display notification "Your images now all have a profile." with title "Profiling complete" sound name "default"
|
Re-profile images.applescript
|
display alert "No profile!" message "None of these images has an embedded profile to use." as critical giving up after 30
|
Re-profile images.applescript
|
set iPhoneImageFiles to {}
|
Re-profile images.applescript
|
delay 8
|
Hide On-login SMB Finder.applescript
|
repeat 3 times
|
Hide On-login SMB Finder.applescript
|
if window 1 exists then
|
Hide On-login SMB Finder.applescript
|
fmGUI_DDR_Save({ddrPath:POSIX path of (path to desktop), dbNameList:{"a00_TIMESSQUARE"}})
|
fmGUI_DDR_Save.applescript
|
on fmGUI_DDR_Save(prefs)
|
fmGUI_DDR_Save.applescript
|
set defaultPrefs to {ddrPath:null, dbNameList:{}}
|
fmGUI_DDR_Save.applescript
|
set ddrPath to ddrPath of prefs
|
fmGUI_DDR_Save.applescript
|
set dbNameList to dbNameList of prefs
|
fmGUI_DDR_Save.applescript
|
if ddrPath is null then error "ddr directory not specified" number -1024
|
fmGUI_DDR_Save.applescript
|
set ddrMenuItem to menu item "Database Design Report..." of menu "Tools" of menu bar item "Tools" of menu bar 1
|
fmGUI_DDR_Save.applescript
|
fmGUI_ClickMenuItem({menuItemRef:ddrMenuItem, waitForMenuAvailable:true})
|
fmGUI_DDR_Save.applescript
|
windowWaitUntil({windowName:"Database Design Report", windowNameTest:"is", whichWindow:"front"})
|
fmGUI_DDR_Save.applescript
|
fmGUI_DDR_SelectFiles({dbNameList:dbNameList})
|
fmGUI_DDR_Save.applescript
|
fmGUI_DDR_SelectParts({})
|
fmGUI_DDR_Save.applescript
|
click radio button 2 of window 1
|
fmGUI_DDR_Save.applescript
|
set openCheckbox to checkbox 1 of window 1
|
fmGUI_DDR_Save.applescript
|
if value of openCheckbox is 1 then click openCheckbox
|
fmGUI_DDR_Save.applescript
|
fmGUI_ObjectClick_Button({buttonName:"Create"})
|
fmGUI_DDR_Save.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.