269 questions
0
votes
1
answer
762
views
How to show an image saved on Documents Directory inside local HTML? iOS
I've this app which needs to store images shown in a webview locally, and show those stored images again inside the same webview.
This what I've gotten so far...
// After download button clicked....
3
votes
2
answers
5k
views
Creating a simple menubar app using Applescript
I am trying to create a menubar app in OS X Yosemite that simply consists of a dropdown menu with submenus. This menu and its submenus would be populated by an applescript script.
I have found ...
0
votes
0
answers
565
views
Multiple files Drag and Drop window for Applescript
I have developed an Applescript code which does the following:
• Go through a folder
• Get all .docs/.xls/.ppt/.pdf
• Question the user stuff like: "Which slides to include from .ppt?", "Which ...
0
votes
2
answers
562
views
how to run a script while afplay is running
Hello everyone I am wondering how to continue with the script execution while afplay is running? For example...
do shell script "afplay /song.mp3"
say "Hello, nice to meet you, what's your ...
1
vote
3
answers
536
views
Can't get relative location of image to use, having to use absolute path
Im building my first app in Xcode using Applescript Objc - I have managed to get it to swap an image (in an outlet called imageViewOne) based on the code below:
-- Declarations
property ImagePath : ...
0
votes
2
answers
718
views
Why can't I add a float and integer together?
on addButtonClicked_(sender)
if readyForFirst = true then
set finalNumber to faceNumber's integerValue
set readyForFirst to false
else
set ...
-1
votes
1
answer
80
views
Can you make games, animations, etc in ApplescriptObjC?
I tackled ApplescriptObjC. I started making apps with the interface builder and such. But can you make actual games in ApplescriptObjC like you can in normal Objective-C? What is the difference other ...
2
votes
1
answer
872
views
How to get the value of a check box in ApplescriptObjC
I'm trying to get the value of a check box in ApplescriptObjC.
on goClicked_(sender)
set checkBoxValue to checkBox's stringValue as boolean
end goClicked_
This code doesn't work. ...
0
votes
1
answer
312
views
AppleScriptObjC check if UItextfield is nil
I've written a small application for OS X in AppleScriptObj-C containing a UItextfield. Everything works fine except that when user has entered text and erased it, the textfield becomes nil. How can I ...
0
votes
1
answer
147
views
issues with date command in Xcode cocoa applescript application
I am trying to do some math using the "date" command. But fist i need to turn text input if a date "MM/DD/YY" into something I can work with. In applescript I can do this:
set MyTempTextInfo to "...
1
vote
2
answers
312
views
setStringValue with AppleScript List
I’m using this code to add each selected track in iTunes to a list in AppleScript Obj-C:
tell application "iTunes"
set these_titles to {}
if selection is not {} then
...
4
votes
1
answer
721
views
Entitlement Keys/Access Groups for Scripting Targets
I can't seem to figure out how to identify what entitlement keys are available for a given app. How does one query an application for its entitlement keys?
Example:
iTunes has these entitlement keys: ...
1
vote
2
answers
669
views
Add Thousands Separator to Integer - Applescript
I'm having the craziest time trying to get a thousands separator (comma) into my numbers using Applescript. I found two subroutines on the net that supposedly will do the trick, but nothing seems to ...
0
votes
1
answer
102
views
Delete hidden folder using apple script in mac
My Application has created ".hungama" folder inside users home directory , i wanted to delete this hidden folder by Apple Script.My normal script is deleting non-hidden folders please help me.
0
votes
1
answer
710
views
How to open a new GUI and close an old GUI in ApplescriptObjC
I'm trying to make it so when a button is clicked, the current GUI closes and a new GUI opens.
I created a second interface to open. So right now, I have 2 xib files, and the AppDelegate file. Do I ...
6
votes
4
answers
5k
views
Swift and scriptingbridge object initialization
I'm trying to write an application for swift control iTunes. But when initializing the application returns an object of type AnyObject, but must iTunesApplication.
This object does not respond to ...
0
votes
1
answer
602
views
How can I convert the input __NSArrayM into an AppleScript list in an Automator Action project?
Automator Action
I am making a custom Automator action for manipulating text input. I tested the input to see what class it was and the result was __NSArrayM. This means that I need to somehow convert ...
2
votes
1
answer
638
views
Save a user popup selection in a custom Automator Action
Using Xcode 5.* for a cocoa-applescript automator action.
Interface is a a simple popup menu that gets populated using an outlet with:
tell thePopupMenu to removeAllItems()
tell thePopupMenu to ...
2
votes
1
answer
240
views
Applescript: asking the Finder from ApplescriptObjC?
This one-line Applescript works fine on my Mac:
tell application "Finder" to open POSIX file "/Development/Applescript/Rapport.docx"
However it fails from a trivial ApplescriptObjC project:
on ...
3
votes
1
answer
364
views
Timeout has no effect in NSAppleScript
I have a simple apple script as follows:
tell application id "com.adobe.InDesign"
set sel to selection
end tell
This script is executed fine, but when the InDesign displaying Save Confirm Dialog, ...
0
votes
1
answer
127
views
Select Item In List Using Tag and Value
I can't quite get my Javascript to select this item in a list. There are two identifiers that I must use to select an item in a list, using Javascript in an Applescript. I can't feasibly script the ...
1
vote
0
answers
107
views
QTCaptureView shows black screen
I have an app that I want to just show a preview of the iSight camera. I am trying to use QTCaptureView to accomplish this. I have the QTCaptureView window linked in interface builder to the correct ...
0
votes
1
answer
238
views
Getting Timeout Error When Using suspendExecution and resumeExecutionWithResult with NSScriptCommand
I am currently making use of the suspendExecution and resumeExecutionWithResult of NSScript command in order to execute Apple Scripts asynchronously in my application. Provided below are the set of ...
2
votes
1
answer
707
views
AppleScript Syntax a real number can't go after this real number?
I have the following line in an AppleScript project:
set script_path to "/tmp/usbmuxd-1.0.7/python-client"
When I try to compile, it highlights the 1.0.7 and gives up this message:
What does this ...
0
votes
1
answer
183
views
Call Cocoa-function removeItemAtPath through AppleScript
I want to use the Cocoa-function removeItemAtPath to delete a folder with a path specified in AppleScript part but don't know how to accomplish that through AppleScriptObjC.
Can you help me by giving ...