text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
tell application process "Google Chrome"
|
get chrome url.applescript
|
set value11 to value of text field 1 of toolbar 1 of window 1
|
get chrome url.applescript
|
display dialog value11
|
get chrome url.applescript
|
property pFolder : "NewEvents"
|
ExportAlbum.applescript
|
set fExists to do shell script "ls -l " & quoted form of POSIX path of (dName & ":" & fName) & " | wc -l"
|
ExportAlbum.applescript
|
log fExists
|
ExportAlbum.applescript
|
if fExists = " 1" then
|
ExportAlbum.applescript
|
log "FILE DOES NOT EXIST: " & (dName & ":" & fName)
|
ExportAlbum.applescript
|
set unsorted to (name of albums in folder pFolder)
|
ExportAlbum.applescript
|
log "Album Name:" & albNameLst
|
ExportAlbum.applescript
|
set nDir to dest & name of album albName in folder pFolder
|
ExportAlbum.applescript
|
log nDir
|
ExportAlbum.applescript
|
with timeout of 9500 seconds
|
ExportAlbum.applescript
|
export (get media items of album albName in folder pFolder) to (nDir as alias) without using originals -- export the edited versions
|
ExportAlbum.applescript
|
set imgLst to media items of album albName in folder pFolder as list
|
ExportAlbum.applescript
|
set pExporalbName to my replace_chars(pExporalbName, ".mp4", ".m4v")
|
ExportAlbum.applescript
|
set pExporalbName to my replace_chars(pExporalbName, ".MP4", ".m4v")
|
ExportAlbum.applescript
|
set pNewExt to item -1 of my theSplit(pExporalbName, ".")
|
ExportAlbum.applescript
|
log imgExt
|
ExportAlbum.applescript
|
set pDesc to description of currImg
|
ExportAlbum.applescript
|
set pFav to favorite of currImg
|
ExportAlbum.applescript
|
if pFav then
|
ExportAlbum.applescript
|
set pRating to "4"
|
ExportAlbum.applescript
|
set pRating to "3"
|
ExportAlbum.applescript
|
if pDesc is missing value then
|
ExportAlbum.applescript
|
set pNewName to pGrp & " - " & pDateStr & "_" & pTimeStr & " - " & pRating
|
ExportAlbum.applescript
|
set pNewName to pGrp & " - " & pDateStr & "_" & pTimeStr & " - " & pRating & " - " & pDesc
|
ExportAlbum.applescript
|
set name of currImg to pNewName --Set title to new image name
|
ExportAlbum.applescript
|
set pKey to keywords of currImg
|
ExportAlbum.applescript
|
if pKey is missing value then
|
ExportAlbum.applescript
|
set keywords of currImg to pRating & " Star" as list
|
ExportAlbum.applescript
|
copy pRating & " Star" to the end of the pKey
|
ExportAlbum.applescript
|
set keywords of currImg to pKey
|
ExportAlbum.applescript
|
log ("current directory and file: " & nDir & ":" & pExporalbName)
|
ExportAlbum.applescript
|
log ("new directory and file: " & nDir & ":" & pNewName & imgExt)
|
ExportAlbum.applescript
|
set name of file (nDir & ":" & pExporalbName as alias) to (pNewName & imgExt)
|
ExportAlbum.applescript
|
set modification date of file (nDir & ":" & pNewName & imgExt as alias) to pDateTime
|
ExportAlbum.applescript
|
log errorNumber & " " & errMsg
|
ExportAlbum.applescript
|
if errorNumber is equal to -48 then
|
ExportAlbum.applescript
|
log "ERROR: Could not rename " & pOrigName & " to " & pNewName & " new name already exists"
|
ExportAlbum.applescript
|
else if errorNumber is equal to -1700 then
|
ExportAlbum.applescript
|
log "ERROR: Could not find file " & pOrigName & " to rename to " & pNewName
|
ExportAlbum.applescript
|
else if errorNumber is equal to -9901 then
|
ExportAlbum.applescript
|
log "ERROR: Unknown Error Occurred"
|
ExportAlbum.applescript
|
property scpTarget : "user@example.com:~/public_html/uploads"
|
Droplet.scpt
|
property publicPath : "https://example.com/uploads/"
|
Droplet.scpt
|
repeat with thisFile in fileList
|
Droplet.scpt
|
set theNum to q number of eachCue
|
Group selected individually.applescript
|
set theID to uniqueID of eachCue
|
Group selected individually.applescript
|
set q name of theGroup to theName
|
Group selected individually.applescript
|
set q number of theGroup to theNum
|
Group selected individually.applescript
|
move cue id theID of parent of eachCue to end of theGroup
|
Group selected individually.applescript
|
requireMinimumSystemVersion("10.4.11")
|
requireMinimumSystemVersion.applescript
|
requireMinimumSystemVersion("10.14.2")
|
requireMinimumSystemVersion.applescript
|
requireMinimumSystemVersion("12.3.4")
|
requireMinimumSystemVersion.applescript
|
on requireMinimumSystemVersion(minimumSystemVersion)
|
requireMinimumSystemVersion.applescript
|
set currentVersion to parseVersionString(do shell script "sw_vers -productVersion")
|
requireMinimumSystemVersion.applescript
|
set requiredVersion to parseVersionString(minimumSystemVersion)
|
requireMinimumSystemVersion.applescript
|
if (majorVersion of currentVersion) < (majorVersion of requiredVersion) then
|
requireMinimumSystemVersion.applescript
|
set requirementsMet to false
|
requireMinimumSystemVersion.applescript
|
else if (majorVersion of currentVersion) = (majorVersion of requiredVersion) then
|
requireMinimumSystemVersion.applescript
|
if (minorVersion of currentVersion) < (minorVersion of requiredVersion) then
|
requireMinimumSystemVersion.applescript
|
else if (minorVersion of currentVersion) = (minorVersion of requiredVersion) then
|
requireMinimumSystemVersion.applescript
|
if (theRevision of currentVersion) < (theRevision of requiredVersion) then
|
requireMinimumSystemVersion.applescript
|
set requirementsMet to true
|
requireMinimumSystemVersion.applescript
|
if requirementsMet then return true
|
requireMinimumSystemVersion.applescript
|
set targetLanguage to first word of (do shell script "defaults read NSGlobalDomain AppleLanguages")
|
requireMinimumSystemVersion.applescript
|
set targetLanguage to "en"
|
requireMinimumSystemVersion.applescript
|
if targetLanguage is "de" then
|
requireMinimumSystemVersion.applescript
|
set dialogTitle to "Nicht unterst" & (ASCII character 159) & "tztes System"
|
requireMinimumSystemVersion.applescript
|
set dialogMessage to "Dieses Skript erfordert mindestens die Systemversion " & minimumSystemVersion & ". "
|
requireMinimumSystemVersion.applescript
|
set dialogTitle to "System not supported"
|
requireMinimumSystemVersion.applescript
|
set dialogMessage to "This script requires at least system version " & minimumSystemVersion & ". "
|
requireMinimumSystemVersion.applescript
|
if (majorVersion of currentVersion) ≥ 10 and (minorVersion of currentVersion) ≥ 4 then
|
requireMinimumSystemVersion.applescript
|
display alert dialogTitle message dialogMessage buttons {"OK"} default button "OK" as warning
|
requireMinimumSystemVersion.applescript
|
display dialog dialogTitle & return & return & dialogMessage buttons {"OK"} default button "OK" with icon 2
|
requireMinimumSystemVersion.applescript
|
end requireMinimumSystemVersion
|
requireMinimumSystemVersion.applescript
|
on parseVersionString(versionString)
|
requireMinimumSystemVersion.applescript
|
set majorVersion to (text item 1 of versionString) as integer
|
requireMinimumSystemVersion.applescript
|
set majorVersion to 0
|
requireMinimumSystemVersion.applescript
|
set minorVersion to (text item 2 of versionString) as integer
|
requireMinimumSystemVersion.applescript
|
set minorVersion to 0
|
requireMinimumSystemVersion.applescript
|
set theRevision to (text item 3 of versionString) as integer
|
requireMinimumSystemVersion.applescript
|
set theRevision to 0
|
requireMinimumSystemVersion.applescript
|
return {majorVersion:majorVersion, minorVersion:minorVersion, theRevision:theRevision}
|
requireMinimumSystemVersion.applescript
|
end parseVersionString
|
requireMinimumSystemVersion.applescript
|
tell application "Merlin Project"
|
Copy%20as%20Markdown.applescript
|
set text4clipboard to ""
|
Copy%20as%20Markdown.applescript
|
set useBrackets to ""
|
Copy%20as%20Markdown.applescript
|
set nextResource to ""
|
Copy%20as%20Markdown.applescript
|
set nextTag to ""
|
Copy%20as%20Markdown.applescript
|
set useBrackets to "[ ] "
|
Copy%20as%20Markdown.applescript
|
set mySeparator to ""
|
Copy%20as%20Markdown.applescript
|
set newLine to "
|
Copy%20as%20Markdown.applescript
|
set myActivities to selection
|
Copy%20as%20Markdown.applescript
|
if myActivities is not {} then
|
Copy%20as%20Markdown.applescript
|
repeat with act in myActivities
|
Copy%20as%20Markdown.applescript
|
set mytitle to title of act
|
Copy%20as%20Markdown.applescript
|
if text4clipboard = "" then
|
Copy%20as%20Markdown.applescript
|
set text4clipboard to text4clipboard & "- " & useBrackets & mytitle -- add the first title into the text2clipboad
|
Copy%20as%20Markdown.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.