text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set theLabeledPopupRemuxFormatLabel to localized string "Remux format:" from table "MacYTDL"
|
Main.applescript
|
set {settings_thePopUp_RemuxFormat, settings_remuxlabel, theTop} to create labeled popup {theNoRemuxLabel, "avi", "flv", "gif", "mkv", "mov", "mp4", "webm"} left inset 70 bottom (theTop + 3) popup width 100 max width 200 label text theLabeledPopupRemuxFormatLabel popup left 70 initial choice DL_Remux_format
|
Main.applescript
|
set {settings_thePopUp_RemuxFormat, settings_remuxlabel, theTop} to create labeled popup {theNoRemuxLabel, "mp4", "mkv", "flv", "webm", "avi", "ogg"} left inset 70 bottom (theTop + 3) popup width 100 max width 200 label text theLabeledPopupRemuxFormatLabel popup left 70 initial choice DL_Remux_format
|
Main.applescript
|
set theCheckboxGetFormatsListLabel to localized string "Get formats list" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Formats, theTop} to create checkbox theCheckboxGetFormatsListLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_formats_list
|
Main.applescript
|
set theCheckboxMetadataLabel to localized string "Add metadata" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Metadata, theTop} to create checkbox theCheckboxMetadataLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_Add_Metadata
|
Main.applescript
|
set theCheckboxEmbedThumbsLabel to localized string "Embed thumbnails" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_ThumbEmbed, theTop} to create checkbox theCheckboxEmbedThumbsLabel left inset 280 bottom (theTop + 1) max width 250 initial state DL_Thumbnail_Embed
|
Main.applescript
|
set theCheckboxWriteThumbsLabel to localized string "Write thumbnails" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_ThumbWrite, theTop} to create checkbox theCheckboxWriteThumbsLabel left inset 70 bottom (theTop - 18) max width 250 initial state DL_Thumbnail_Write
|
Main.applescript
|
set theCheckboxForceOWLabel to localized string "Force overwrites" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_OverWrites, theTop} to create checkbox theCheckboxForceOWLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_over_writes
|
Main.applescript
|
set theLabeledPopupCodecLabel to localized string "Audio format:" from table "MacYTDL"
|
Main.applescript
|
set {settings_thePopup_AudioCodec, settingsCodecLabel, theTop} to create labeled popup {theBestLabel, "aac", "flac", "mp3", "m4a", "opus", "vorbis", "wav"} left inset 220 bottom (theTop - 2) popup width 90 max width 200 label text theLabeledPopupCodecLabel popup left 220 initial choice DL_audio_codec
|
Main.applescript
|
set theCheckboxAudioOnlyLabel to localized string "Audio only" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_AudioOnly, theTop} to create checkbox theCheckboxAudioOnlyLabel left inset 70 bottom (theTop - 21) max width 250 initial state DL_audio_only
|
Main.applescript
|
set settings_theCheckbox_DescriptionLabel to localized string "Download description" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Description, theTop} to create checkbox settings_theCheckbox_DescriptionLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_description
|
Main.applescript
|
set {theSettingsAdminRule, theTop} to create rule (theTop + 1) left inset 70 rule width (accViewWidth - 70)
|
Main.applescript
|
set theCheckboxDLAutoSTsLabel to localized string "Auto-generated subtitles" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_AutoSubTitles, theTop} to create checkbox theCheckboxDLAutoSTsLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_YTAutoST
|
Main.applescript
|
set theCheckboxEmbedSTsLabel to localized string "Embed subtitles" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_STEmbed, theTop} to create checkbox theCheckboxEmbedSTsLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_STEmbed
|
Main.applescript
|
set theLabeledFieldSTsLangLabel to localized string "Subtitles language:" from table "MacYTDL"
|
Main.applescript
|
set {settings_theField_STLanguage, settings_language_label, theTop, fieldSTLangLeft} to create side labeled field DL_STLanguage left inset 70 bottom (theTop + 3) total width 200 label text theLabeledFieldSTsLangLabel field left 0
|
Main.applescript
|
set theCheckboxDLSTsLabel to localized string "Download subtitles" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_SubTitles, theTop, STCheckBoxWidth} to create checkbox theCheckboxDLSTsLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_subtitles
|
Main.applescript
|
set theLabeledPopUpSTsFormatLabel to localized string "Subtitles format:" from table "MacYTDL"
|
Main.applescript
|
set {settings_thePopUp_SubTitlesFormat, settings_STFormatlabel, theTop, popupSTFormatLeftDist} to create labeled popup {theBestLabel, "srt", "vtt", "ass", "lrc", "ttml", "dfxp", "srv3"} left inset (STCheckBoxWidth + 77) bottom (theTop - 23) popup width 65 max width 250 label text theLabeledPopUpSTsFormatLabel popup left (STCheckBoxWidth + 77) initial choice DL_subtitles_format
|
Main.applescript
|
set {theSettingsSTEndRule, theTop} to create rule (theTop + 1) left inset 70 rule width (accViewWidth - 70)
|
Main.applescript
|
set theCheckboxLimitRateLabel to localized string "Limit download speed (MB/sec)" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Limit_Rate, theTop, RateBoxLeftDist} to create checkbox theCheckboxLimitRateLabel left inset 70 bottom (theTop + 3) max width 200 initial state DL_Limit_Rate
|
Main.applescript
|
set {settings_theField_LimitRateValue, theTop} to create field DL_Limit_Rate_Value left inset (RateBoxLeftDist + 70) bottom (theTop - 20) field width 40
|
Main.applescript
|
set theCheckboxAutoDownloadLabel to localized string "Automatic download" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Auto_Download, theTop} to create checkbox theCheckboxAutoDownloadLabel left inset 70 bottom (theTop + 1) max width 200 initial state DL_auto
|
Main.applescript
|
set theCheckboxShowSettingsLabel to localized string "Show settings before download" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Show_Settings, theTop} to create checkbox theCheckboxShowSettingsLabel left inset 70 bottom (theTop + 3) max width 200 initial state DL_Show_Settings
|
Main.applescript
|
if DL_Use_YTDLP is "yt-dlp-legacy" then
|
Main.applescript
|
set settings_DL_Use_YTDLP to "YT-DLP"
|
Main.applescript
|
set settings_DL_Use_YTDLP to DL_Use_YTDLP
|
Main.applescript
|
set theCheckboxCheckYTDLOnStartLabel to (localized string "Check" from table "MacYTDL") & " " & settings_DL_Use_YTDLP & " " & (localized string "version on startup" from table "MacYTDL")
|
Main.applescript
|
set {settings_theCheckbox_Auto_YTDL_Check, theTop} to create checkbox theCheckboxCheckYTDLOnStartLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_YTDL_auto_check
|
Main.applescript
|
set theCheckboxTimeStampsLabel to localized string "Add timestamps to log" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_TimeStamps, theTop} to create checkbox theCheckboxTimeStampsLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_TimeStamps
|
Main.applescript
|
set theCheckboxVerboseLabel to localized string "Verbose logging" from table "MacYTDL"
|
Main.applescript
|
set {settings_theCheckbox_Verbose, theTop} to create checkbox theCheckboxVerboseLabel left inset 70 bottom (theTop + 3) max width 250 initial state DL_verbose
|
Main.applescript
|
set theLabeledPopUpFileFormatLabel to localized string "File format:" from table "MacYTDL"
|
Main.applescript
|
set {settings_thePopUp_FileFormat, settings_formatlabel, theTop, popupLeft} to create labeled popup {theDefaultLabel, "mp4", "webm", "ogg", "3gp", "flv"} left inset 70 bottom (theTop + 3) popup width 90 max width 400 label text theLabeledPopUpFileFormatLabel popup left 70 initial choice DL_format
|
Main.applescript
|
set theLabelPathChangeDLFolderLabel to localized string "Change download folder:" from table "MacYTDL"
|
Main.applescript
|
set {settings_thePathControl, settings_pathLabel, theTop} to create labeled path control (POSIX path of downloadsFolder_Path) left inset 70 bottom (theTop + 8) control width 150 label text theLabelPathChangeDLFolderLabel with pops up
|
Main.applescript
|
set {MacYTDL_icon, theTop} to create image view MacYTDL_custom_icon_file_posix left inset 0 bottom theTop - 50 view width 64 view height 64 scale image scale proportionally
|
Main.applescript
|
set {settings_prompt, theTop} to create label settings_diag_prompt left inset 0 bottom (theTop - 5) max width accViewWidth aligns center aligned with bold type
|
Main.applescript
|
set settings_allControls to {theSettingsRule, settings_theCheckbox_Auto_Download, settings_theCheckbox_Show_Settings, settings_theCheckbox_QT_Compat, settings_theCheckbox_Use_CustomSettings, settings_theField_Custom_Settings, settings_theCheckbox_Use_CustomTemplate, settings_theField_Custom_Template, settings_theCheckBox_Use_Cookies, settings_theCookiesLocationPathControl, settings_theCheckBox_Use_Proxy, settings_theField_ProxyURL, settings_theCheckbox_Limit_Rate, settings_theField_LimitRateValue, settings_theCheckbox_Original, settings_thePopUp_RemuxFormat, settings_remuxlabel, settings_theCheckbox_Formats, settings_theCheckbox_Metadata, settings_theCheckbox_TimeStamps, settings_theCheckbox_Verbose, settings_theCheckbox_ThumbEmbed, settings_theCheckbox_ThumbWrite, settings_theCheckbox_AutoSubTitles, settings_thePopUp_SubTitlesFormat, settings_STFormatlabel, settings_theField_STLanguage, settings_language_label, settings_theCheckbox_STEmbed, settings_theCheckbox_SubTitles, settings_theCheckbox_Auto_YTDL_Check, settings_theCheckbox_AudioOnly, settings_theCheckbox_OverWrites, settings_thePopup_AudioCodec, settingsCodecLabel, settings_theCheckbox_Description, theSettingsAdminRule, settings_thePopUp_FileFormat, settings_formatlabel, settings_thePathControl, settings_pathLabel, MacYTDL_icon, settings_prompt, theSettingsSTEndRule}
|
Main.applescript
|
if (popupSTFormatLeftDist + 50) is greater than accViewWidth then
|
Main.applescript
|
set calculatedAccViewWidth to (popupSTFormatLeftDist + 60)
|
Main.applescript
|
set calculatedAccViewWidth to accViewWidth
|
Main.applescript
|
if (BoxCustSetLeftDist + 250) is greater than calculatedAccViewWidth then
|
Main.applescript
|
set calculatedAccViewWidth to (BoxCustSetLeftDist + 250)
|
Main.applescript
|
set {settings_button_returned, settings_button_number_returned, settings_controls_results, finalPosition} to display enhanced window diag_Title buttons theButtons acc view width calculatedAccViewWidth acc view height theTop acc view controls settings_allControls initial position window_Position
|
Main.applescript
|
if settings_button_number_returned is 2 then -- Save Settings
|
Main.applescript
|
set settings_auto_download_choice to item 2 of settings_controls_results -- <= Automatic download using Service
|
Main.applescript
|
set settings_show_settings_choice to item 3 of settings_controls_results -- <= Show settings before download choice
|
Main.applescript
|
set settings_QT_Compat_choice to item 4 of settings_controls_results -- <= Make download QT compatible
|
Main.applescript
|
set settings_use_custom_settings_choice to item 5 of settings_controls_results -- <= Use custom settings choice
|
Main.applescript
|
set settings_custom_settings_choice to item 6 of settings_controls_results -- <= The custom settings to use
|
Main.applescript
|
set settings_use_custom_template_choice to item 7 of settings_controls_results -- <= Use custom template choice
|
Main.applescript
|
set settings_custom_template_choice to item 8 of settings_controls_results -- <= The custom template to use
|
Main.applescript
|
set settings_use_cookies_choice to item 9 of settings_controls_results -- <= Use proxy choice
|
Main.applescript
|
set settings_cookies_location_choice to item 10 of settings_controls_results -- <= The proxy URL
|
Main.applescript
|
set settings_use_proxy_choice to item 11 of settings_controls_results -- <= Use proxy choice
|
Main.applescript
|
set settings_proxy_URL_choice to item 12 of settings_controls_results -- <= The proxy URL
|
Main.applescript
|
set settings_limit_rate_choice to item 13 of settings_controls_results -- <= Limit rate choice
|
Main.applescript
|
set settings_limit_rate_value_choice to item 14 of settings_controls_results -- <= Limit rate value choice
|
Main.applescript
|
set settings_original_choice to item 15 of settings_controls_results -- <= Keep original after remux choice
|
Main.applescript
|
set settings_remux_format_choice to item 16 of settings_controls_results -- <= Remux format choice
|
Main.applescript
|
set settings_formats_list_choice to item 18 of settings_controls_results -- <= Add metadata choice
|
Main.applescript
|
set settings_metadata_choice to item 19 of settings_controls_results -- <= Add metadata choice
|
Main.applescript
|
set settings_timestamps_choice to item 20 of settings_controls_results -- <= Add timestamps choice
|
Main.applescript
|
set settings_verbose_choice to item 21 of settings_controls_results -- <= Verbose choice
|
Main.applescript
|
set settings_thumb_embed_choice to item 22 of settings_controls_results -- <= Embed Thumbnails choice
|
Main.applescript
|
set settings_thumb_write_choice to item 23 of settings_controls_results -- <= Write Thumbnails choice
|
Main.applescript
|
set settings_autoST_choice to item 24 of settings_controls_results -- <= Auto-gen subtitles choice
|
Main.applescript
|
set settings_subtitlesformat_choice to item 25 of settings_controls_results -- <= Subtitles format choice
|
Main.applescript
|
set settings_subtitleslanguage_choice to item 27 of settings_controls_results -- <= Subtitles language choice
|
Main.applescript
|
set settings_stembed_choice to item 29 of settings_controls_results -- <= Embed subtitles choice
|
Main.applescript
|
set settings_subtitles_choice to item 30 of settings_controls_results -- <= Subtitles choice
|
Main.applescript
|
set settings_YTDL_auto_choice to item 31 of settings_controls_results -- <= Auto check YTDL version on startup choice
|
Main.applescript
|
set settings_audio_only_choice to item 32 of settings_controls_results -- <= Audio only choice
|
Main.applescript
|
set settings_forceOW_choice to item 33 of settings_controls_results -- <= Force overwrites choice
|
Main.applescript
|
set settings_audio_codec_choice to item 34 of settings_controls_results -- <= Audio codec choice
|
Main.applescript
|
set settings_description_choice to item 36 of settings_controls_results -- <= Description choice
|
Main.applescript
|
set settings_format_choice to item 38 of settings_controls_results -- <= File format choice
|
Main.applescript
|
set settings_folder_choice to item 40 of settings_controls_results -- <= The download path choice
|
Main.applescript
|
set value of property list item "Add_Metadata" to settings_metadata_choice
|
Main.applescript
|
set value of property list item "Audio_Only" to settings_audio_only_choice
|
Main.applescript
|
set value of property list item "Audio_Codec" to settings_audio_codec_choice
|
Main.applescript
|
set value of property list item "Auto_Check_YTDL_Update" to settings_YTDL_auto_choice
|
Main.applescript
|
set value of property list item "Description" to settings_description_choice
|
Main.applescript
|
set value of property list item "FileFormat" to settings_format_choice
|
Main.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.