Applescript : Quicktime X Export to 720
Looking for help (really to do) with a script/automator action for opening a files in QT X and using the export 720p command. I do not want to use the encode feature built into the finder. Using the "export" feature in QT X with the files I'm working does the trick and does not re-encode the files. I tried using automator but there is no "export" action only "encode" which re-encodes the files.
I see the command in the dictionary but can't seem to make it work.
i've seen a lot of scripting help but mostly for QT 7 and Pro. Not so much for X
is this possible?
Thanks in advance for your talent and skill,
Cheers!
macos applescript automator quicktime
add a comment |
Looking for help (really to do) with a script/automator action for opening a files in QT X and using the export 720p command. I do not want to use the encode feature built into the finder. Using the "export" feature in QT X with the files I'm working does the trick and does not re-encode the files. I tried using automator but there is no "export" action only "encode" which re-encodes the files.
I see the command in the dictionary but can't seem to make it work.
i've seen a lot of scripting help but mostly for QT 7 and Pro. Not so much for X
is this possible?
Thanks in advance for your talent and skill,
Cheers!
macos applescript automator quicktime
add a comment |
Looking for help (really to do) with a script/automator action for opening a files in QT X and using the export 720p command. I do not want to use the encode feature built into the finder. Using the "export" feature in QT X with the files I'm working does the trick and does not re-encode the files. I tried using automator but there is no "export" action only "encode" which re-encodes the files.
I see the command in the dictionary but can't seem to make it work.
i've seen a lot of scripting help but mostly for QT 7 and Pro. Not so much for X
is this possible?
Thanks in advance for your talent and skill,
Cheers!
macos applescript automator quicktime
Looking for help (really to do) with a script/automator action for opening a files in QT X and using the export 720p command. I do not want to use the encode feature built into the finder. Using the "export" feature in QT X with the files I'm working does the trick and does not re-encode the files. I tried using automator but there is no "export" action only "encode" which re-encodes the files.
I see the command in the dictionary but can't seem to make it work.
i've seen a lot of scripting help but mostly for QT 7 and Pro. Not so much for X
is this possible?
Thanks in advance for your talent and skill,
Cheers!
macos applescript automator quicktime
macos applescript automator quicktime
asked Nov 16 at 2:24
Ringslinger
31
31
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
tell application "QuickTime Player"
set movieName to the name of the front document
set savePath to a reference to POSIX file ¬
("/Users/WBTVPOST/Desktop/" & movieName & ".mov")
export the front document in savePath using settings preset "720p"
end tell
System info: AppleScript version: 2.7
System version: 10.13.6
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
add a comment |
Looking for QuickTime Player Applescript dictionary, it looks quite simple using Export command like in script bellow :
set MyFile to choose file name -- open save as dialog to fill path and file name
tell application "QuickTime Player"
activate
export (document 1) in MyFile using settings preset "720p"
end tell
However, if QuickTime is correctly performing the export (you can see progress bar of export by QuickTime), I always end up with error (no permission to write exported file)...even if the destination folder is my Desktop !!
I think it is a bug in the QuickTime Applescript command. May be someone knows how to deal with that ?
Then, I used a work around using GUI scripting. I try to avoid GUI scripting, but in this case, I did not find how. Therefore, the script must simulate the user click of the export menu and then fill the save-as dialog box. Doing that, QuickTime has no permission issue !
Here is the script with many comments :
set FileName to "test720p" -- your file name for the 720p exported video
set DestFolder to "myFolder/mySubFolder" -- path from Documents folder (folders should exit !!)
tell application "QuickTime Player" to activate
tell application "System Events" to tell process "QuickTime Player"
--click menu 720p of menu "Export" which is item 16 of menu File which is 3rd menu of main menu bar
click menu item 2 of menu 1 of menu item 16 of menu 1 of menu bar item 3 of menu bar 1
delay 1 -- leave time to open save as dialog
-- need to fill the save as dialog box
keystroke "h" using {command down, shift down} -- go home directory
keystroke "g" using {command down, shift down} -- go-to dialog
keystroke DestFolder
keystroke return -- close go-to dialog
keystroke FileName -- fill save as file name on top
keystroke return -- close the save-as dialog
end tell
There are other command keys in standard save-as dialog box (to go to other standard folders). up to you to adjust to your needs. Make sure your folders in DestFolder are already created before !
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53330568%2fapplescript-quicktime-x-export-to-720%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
tell application "QuickTime Player"
set movieName to the name of the front document
set savePath to a reference to POSIX file ¬
("/Users/WBTVPOST/Desktop/" & movieName & ".mov")
export the front document in savePath using settings preset "720p"
end tell
System info: AppleScript version: 2.7
System version: 10.13.6
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
add a comment |
tell application "QuickTime Player"
set movieName to the name of the front document
set savePath to a reference to POSIX file ¬
("/Users/WBTVPOST/Desktop/" & movieName & ".mov")
export the front document in savePath using settings preset "720p"
end tell
System info: AppleScript version: 2.7
System version: 10.13.6
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
add a comment |
tell application "QuickTime Player"
set movieName to the name of the front document
set savePath to a reference to POSIX file ¬
("/Users/WBTVPOST/Desktop/" & movieName & ".mov")
export the front document in savePath using settings preset "720p"
end tell
System info: AppleScript version: 2.7
System version: 10.13.6
tell application "QuickTime Player"
set movieName to the name of the front document
set savePath to a reference to POSIX file ¬
("/Users/WBTVPOST/Desktop/" & movieName & ".mov")
export the front document in savePath using settings preset "720p"
end tell
System info: AppleScript version: 2.7
System version: 10.13.6
answered Nov 16 at 23:21
CJK
2,4781215
2,4781215
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
add a comment |
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
That's it! Thanks
– Ringslinger
Nov 16 at 23:30
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
All done. Thanks.
– Ringslinger
Nov 16 at 23:44
add a comment |
Looking for QuickTime Player Applescript dictionary, it looks quite simple using Export command like in script bellow :
set MyFile to choose file name -- open save as dialog to fill path and file name
tell application "QuickTime Player"
activate
export (document 1) in MyFile using settings preset "720p"
end tell
However, if QuickTime is correctly performing the export (you can see progress bar of export by QuickTime), I always end up with error (no permission to write exported file)...even if the destination folder is my Desktop !!
I think it is a bug in the QuickTime Applescript command. May be someone knows how to deal with that ?
Then, I used a work around using GUI scripting. I try to avoid GUI scripting, but in this case, I did not find how. Therefore, the script must simulate the user click of the export menu and then fill the save-as dialog box. Doing that, QuickTime has no permission issue !
Here is the script with many comments :
set FileName to "test720p" -- your file name for the 720p exported video
set DestFolder to "myFolder/mySubFolder" -- path from Documents folder (folders should exit !!)
tell application "QuickTime Player" to activate
tell application "System Events" to tell process "QuickTime Player"
--click menu 720p of menu "Export" which is item 16 of menu File which is 3rd menu of main menu bar
click menu item 2 of menu 1 of menu item 16 of menu 1 of menu bar item 3 of menu bar 1
delay 1 -- leave time to open save as dialog
-- need to fill the save as dialog box
keystroke "h" using {command down, shift down} -- go home directory
keystroke "g" using {command down, shift down} -- go-to dialog
keystroke DestFolder
keystroke return -- close go-to dialog
keystroke FileName -- fill save as file name on top
keystroke return -- close the save-as dialog
end tell
There are other command keys in standard save-as dialog box (to go to other standard folders). up to you to adjust to your needs. Make sure your folders in DestFolder are already created before !
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
add a comment |
Looking for QuickTime Player Applescript dictionary, it looks quite simple using Export command like in script bellow :
set MyFile to choose file name -- open save as dialog to fill path and file name
tell application "QuickTime Player"
activate
export (document 1) in MyFile using settings preset "720p"
end tell
However, if QuickTime is correctly performing the export (you can see progress bar of export by QuickTime), I always end up with error (no permission to write exported file)...even if the destination folder is my Desktop !!
I think it is a bug in the QuickTime Applescript command. May be someone knows how to deal with that ?
Then, I used a work around using GUI scripting. I try to avoid GUI scripting, but in this case, I did not find how. Therefore, the script must simulate the user click of the export menu and then fill the save-as dialog box. Doing that, QuickTime has no permission issue !
Here is the script with many comments :
set FileName to "test720p" -- your file name for the 720p exported video
set DestFolder to "myFolder/mySubFolder" -- path from Documents folder (folders should exit !!)
tell application "QuickTime Player" to activate
tell application "System Events" to tell process "QuickTime Player"
--click menu 720p of menu "Export" which is item 16 of menu File which is 3rd menu of main menu bar
click menu item 2 of menu 1 of menu item 16 of menu 1 of menu bar item 3 of menu bar 1
delay 1 -- leave time to open save as dialog
-- need to fill the save as dialog box
keystroke "h" using {command down, shift down} -- go home directory
keystroke "g" using {command down, shift down} -- go-to dialog
keystroke DestFolder
keystroke return -- close go-to dialog
keystroke FileName -- fill save as file name on top
keystroke return -- close the save-as dialog
end tell
There are other command keys in standard save-as dialog box (to go to other standard folders). up to you to adjust to your needs. Make sure your folders in DestFolder are already created before !
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
add a comment |
Looking for QuickTime Player Applescript dictionary, it looks quite simple using Export command like in script bellow :
set MyFile to choose file name -- open save as dialog to fill path and file name
tell application "QuickTime Player"
activate
export (document 1) in MyFile using settings preset "720p"
end tell
However, if QuickTime is correctly performing the export (you can see progress bar of export by QuickTime), I always end up with error (no permission to write exported file)...even if the destination folder is my Desktop !!
I think it is a bug in the QuickTime Applescript command. May be someone knows how to deal with that ?
Then, I used a work around using GUI scripting. I try to avoid GUI scripting, but in this case, I did not find how. Therefore, the script must simulate the user click of the export menu and then fill the save-as dialog box. Doing that, QuickTime has no permission issue !
Here is the script with many comments :
set FileName to "test720p" -- your file name for the 720p exported video
set DestFolder to "myFolder/mySubFolder" -- path from Documents folder (folders should exit !!)
tell application "QuickTime Player" to activate
tell application "System Events" to tell process "QuickTime Player"
--click menu 720p of menu "Export" which is item 16 of menu File which is 3rd menu of main menu bar
click menu item 2 of menu 1 of menu item 16 of menu 1 of menu bar item 3 of menu bar 1
delay 1 -- leave time to open save as dialog
-- need to fill the save as dialog box
keystroke "h" using {command down, shift down} -- go home directory
keystroke "g" using {command down, shift down} -- go-to dialog
keystroke DestFolder
keystroke return -- close go-to dialog
keystroke FileName -- fill save as file name on top
keystroke return -- close the save-as dialog
end tell
There are other command keys in standard save-as dialog box (to go to other standard folders). up to you to adjust to your needs. Make sure your folders in DestFolder are already created before !
Looking for QuickTime Player Applescript dictionary, it looks quite simple using Export command like in script bellow :
set MyFile to choose file name -- open save as dialog to fill path and file name
tell application "QuickTime Player"
activate
export (document 1) in MyFile using settings preset "720p"
end tell
However, if QuickTime is correctly performing the export (you can see progress bar of export by QuickTime), I always end up with error (no permission to write exported file)...even if the destination folder is my Desktop !!
I think it is a bug in the QuickTime Applescript command. May be someone knows how to deal with that ?
Then, I used a work around using GUI scripting. I try to avoid GUI scripting, but in this case, I did not find how. Therefore, the script must simulate the user click of the export menu and then fill the save-as dialog box. Doing that, QuickTime has no permission issue !
Here is the script with many comments :
set FileName to "test720p" -- your file name for the 720p exported video
set DestFolder to "myFolder/mySubFolder" -- path from Documents folder (folders should exit !!)
tell application "QuickTime Player" to activate
tell application "System Events" to tell process "QuickTime Player"
--click menu 720p of menu "Export" which is item 16 of menu File which is 3rd menu of main menu bar
click menu item 2 of menu 1 of menu item 16 of menu 1 of menu bar item 3 of menu bar 1
delay 1 -- leave time to open save as dialog
-- need to fill the save as dialog box
keystroke "h" using {command down, shift down} -- go home directory
keystroke "g" using {command down, shift down} -- go-to dialog
keystroke DestFolder
keystroke return -- close go-to dialog
keystroke FileName -- fill save as file name on top
keystroke return -- close the save-as dialog
end tell
There are other command keys in standard save-as dialog box (to go to other standard folders). up to you to adjust to your needs. Make sure your folders in DestFolder are already created before !
edited Nov 16 at 9:43
answered Nov 16 at 7:42
pbell
1,9281810
1,9281810
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
add a comment |
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
Yea. I ran into the same permissions problem when I tried you original script. Very strange. I hope that with some modifications I can make the GUI script work for me. Thank you.
– Ringslinger
Nov 16 at 16:43
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53330568%2fapplescript-quicktime-x-export-to-720%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown