With ScreenFloat v2.2, you can automate tasks by running custom AppleScripts when you double-click a floating shot. This guide will walk you through setting up this feature.
First, you need an AppleScript that will be triggered by your double-click action workflow in ScreenFloat. Here’s a basic outline to help you get started:
Write your script. Here’s a simple example that displays the parameters passed by ScreenFloat:
``` on open argumentsList set fileURL to (item 1 of argumentsList) set filePath to (item 2 of argumentsList) set fileType to (item 3 of argumentsList) set fileExtension to (item 4 of argumentsList) set fileWidth to (item 5 of argumentsList) set fileHeight to (item 6 of argumentsList)
display dialog "File URL: " & fileURL & return & ¬
"File Path: " & filePath & return & ¬
"File Type: " & fileType & return & ¬
"File Extension: " & fileExtension & return & ¬
"File Width: " & fileWidth & return & ¬
"File Height: " & fileHeight
return true
end open ```
Save your script with a memorable name and the .scpt
extension.
For ScreenFloat to access your script, it must be in a specific folder:
Open Finder and navigate to:
/Users/[yourname]/Library/Application Scripts/at.EternalStorms.ScreenFloat-[appstore/trial]/
[yourname]
with your Mac username.[appstore]
if you downloaded ScreenFloat from the Mac App Store, or [trial]
if you are using the trial version.Move your saved AppleScript into this folder.
Now, whenever you double-click a floating shot in ScreenFloat, your AppleScript will run and process the shot according to the script’s instructions.
Download Script: Create Link from Shot with Custom FTP Server
Uploads the double-clicked shot to your FTP server and copies a link to it.
Read Blog Post: Direct-Paste Shot into active App (Script included)
Learn how to create a double-click workflow to paste a floating shot into the active app’s active window with a simple double-click.
If you have any questions or need further assistance, please don’t hesitate to contact me.