I manage to make one but the problem now is that I have set it up so that when it goes to the screen where you choose the directory to export i followed your earlier advice on using COMMAND SHIFT G then Pause then insert in the text to the directory...
The problem is that if I put multiple files in a folder what happens is that for some weird reason when it comes to the part where COMMAND SHIFT G happens and insert text. it inserted the path twice??? Here is my macro.
I don't know why the text would be inserted twice, but you don't want to type the full path of the file anyway.
Presumably the app automatically sets the file name and file extension when you select the ProRes export, right? If you specify the full path, including the name of the source file, then you will end up overwriting that.
Instead, just specify the target directory, which in this case is just ~/Desktop.
You are triggering this macro every time a file is added to the Desktop folder. And your macro adds a file to the desktop folder, triggering a second copy of your macro to run simultaneously, and when you create a third file, you’ll have three copies of your macro running.
Either trigger the folder manually and process the whole folder, or trigger it when a file is added and only process that one file. Don’t do both.
Hi Sir Peter, managed to circumvent that now thanks
The problem now is that for some reason it processes the first file but it sometimes stops or failes after it and never proceed to the second one?
Its possible you can pause until a menu becauses enabled (for example, the Export menu or other menu items may be disabled while the export is in progress). Otherwise you will have to use Pause Until with the Found Image condition to pause while the image is on the screen.
Can you give me some help on making an apple script that
opens the system preferences
Goes to Desktop & Screen Saver
then goes to the Screen Saver Tab
Then sets the Drop down STart after to Never
then goes back to the main system preferences
selects energy Saver
then check the prevent the computer from sleeping checkbox
and then close system preferences
But don't ask specifically me, because there are many people here who know way more AppleScript that me.
Also, as a general rule, don't specify the "how" of what you want to do (AppleScript), worry only about what you actually want to do and why - there may be a much better way to do it, or a completely different way to solve your problem.
For example, in this case, you want to disable the screen saver and sleeping. It's likely that you can do that using the caffinate utility more effectively, but you haven't described what you want to do and why.
But always start a new topic for a new question unless it is well related to the existing question.
That's about a half hour job (or more) for someone not readily familiar with scripting the system preferences.
For that matter you DON'T want to use System Events to UI-Script the prefs.
This will set the start time of the screen saver to none:
tell application "System Preferences" to if running then quit
tell application "System Events"
tell screen saver preferences to set its delay interval to 0
end tell
The following shell script will set the sleep interval to “never”.
sudo pmset sleep 0
You can make this run without having to enter your password by adjusting your sudoers file.
(I haven't done this, so you'll have to research it yourself.)
If you're willing to enter your username and password in a script then you can combine the above by running this AppleScript:
tell application "System Preferences" to if running then quit
tell application "System Events"
tell screen saver preferences to set its delay interval to 0
end tell
do shell script "sudo pmset sleep 0" user name "yourUserName" password "yourPassword;" with administrator privileges