We have developed our own application and plugin.
It allows you to easily and quickly access our website and services from one app.
So far, Mira is functioning very well. We have made many new additions and so much more progress on Mira which we are very happy about. Most of the dialog is all set and we have added many functions, system functions and so much more.
Mira should be out within 2 weeks.
Some screenshots of what we have so far are below :)
The code to resize an image is quite complex, so bear with me.
You can change the scale factor which is currently at 0.5. If you'd like to make the image larger or smaller, you can change the number.
set this_file to choose file without invisibles
tell application "Image Events"
-- start the Image Events application
-- open the image file
set this_image to open this_file
-- perform action
scale this_image by factor 0.5
-- save the changes
save this_image with icon
-- purge the open image data
on error error_message
display dialog error_message
Yes, it is possible to use Objective-C with AppleScript. The program AppleScriptObjC allows you to use both Objective-C code along AppleScript to add things like loading bars and more.
"AppleScriptObjC was introduced largely as a replacement for AppleScript Studio, as a way to develop AppleScript-based applications with a rich interface in Xcode. Subsequent releases have made it increasingly more accessible to regular scripters.
Not every script needs a complex interface, and not every scripter wants to master the complications of Xcode. AppleScriptObjC offers abilities most scripters want in their standard AppleScript applets or scripts. 'Everyday AppleScriptObjC' looks at AppleScriptObjC from this perspective: how to take advantage of this great resource in your everyday scripts." - Their website
Check it out now!
In order to have a custom icon in a dialog window, you must create or find one on the web. This image must be converted to an ICNS file (icon.icns). You can download different converters online to export a PNG as an ICNS file.
In order to have an icon in your script, you must have a Script Bundle. This type of script has its own file library to save and reference your resources. For icons in Plugin Assistant, please refer to the Plugin Assistant Developer Center