Hi,
I’ve followed the instructions pdf from July 2022 to be able to export a media clip using ELAN. I’ve moved the txt and scpt files into the Preferences/ELAN folder on my Mac and this is what happens when I export: A ‘save as’ dialog opens, I specify the path to which the clip should be saved (Desktop) and then Quicktime opens the original movie file and then a second window with the clipped movie file, but that window disappears quickly and the clipped file is not stored anywhere, not on the Desktop, not in the folder with the original unclipped video, nowhere. Is there some modification I need to make to the script files that I missed? Thank you for your response!
Hi,
The AppleScript assumes there is a disc named “Macintosh HD” and uses this to construct the target file name. I think that’s in principle the only thing that might need to be modified in case your main HD has a different name.
While constructing the target file name the script tries to replace some characters e.g. if “.” or “,” are part of the file name and this might fail (leading to unexpected results). Otherwise I can’t think of what could go wrong.
So, if your HD is named “Macintosh HD” and you enter “abc” or similar as file name, I would expect it to work.
-Han
Thank you for the quick response! I renamed the hard drive in the script to MacHD and my file name didn’t contain any “.” or “,”, I don’t know what else I might try. If anyone else has experienced this problem, I’d be glad to hear from them.
Ok. Just to be sure, a comment in the script mentions to change the label of the HD, but it doesn’t mention that the “Compile the Script” button (with the hammer icon) in Script Editor needs to be clicked to apply the change. We’ll need to add that to the documentation.
If you did that already and it still doesn’t work, you can add a line to show the actual target file name when the script is running:
after the line
set target_file to hd & itemlist as string
add something like this:
display dialog "Target: " & target_file
and compile again. When clipping from ELAN a popup should show where the file is going to be saved.
Thanks, I clicked the hammer and I also added the suggested command to the script qtp_clip_10_10_export.scpt
Nothing changes, the video file opens in quicktime, the clipped file opens briefly then closes without anything being saved.
Ah, yes, that I forgot to ask, the version of the script, sorry about that.
The current .zip package also contains a version named “qtp_clip_12_2_export.scpt”, maybe you can try that one? Although even with the other version I would expect that the message dialog with the file name should appear.
So, I have both scripts in the ELAN preferences folder and I’ve adjusted the HD name in both and have added the display command to both. I don’t know which one runs when I click on export media clip in ELAN…
That information should be in the file clip-media.txt, the first non-comment line starting with osascript should contain the path to the correct .scpt file.
I’m sorry this cannot be distributed in a more convenient way, it doesn’t seem to be allowed to include a .scpt file inside the distribution package.
Still strange that you don’t see the dialog with the export path.
