269 questions
0
votes
1
answer
3k
views
How to Zip folder with AppleScript-objc?
I'm generating a few Logs on the system, and then copying it to /tmp/MyFolder, and then
I move the folder to the desktop, I'm trying to compact it before you move on, but I don't know how to do it, I ...
1
vote
1
answer
1k
views
How to execute cd commands with apple script
I have written a program to execute the commands in cocoapp using apple script. There are 2 issues am facing
1) the applescript is exceuting always from the projet directory not from the root
2)cd ...
2
votes
1
answer
771
views
Problem with date picker showing (main thread issue?)
Working with an AppleScript file from https://github.com/bat-tomr/dialog-node ...
# 06/04/16 09:35:02
# Author: Shane Stanley
# Adapted by Christopher Stone
use AppleScript version "2.4"
use ...
0
votes
0
answers
71
views
Determinate progress indicator with AppleScript-Objc
I would like to know how I can create a due hereunder progress indicator that shows me real information of the file that I am downloading or is download speed and how much time is remaining to ...
0
votes
1
answer
1k
views
Get full name of outlook account with applescript
How can I get the name of an outlook account in microsoft outlook using applescript
I've tried
tell application "Microsoft Outlook"
set name to name of (get account)
...
48
votes
8
answers
64k
views
AppleScript Application is not allowed to send keystrokes
I made an app with AppleScript called FRIDAY. When I tell it to 'open chrome', it opens google chrome, this is working on Script Editor and out side of script editor. I can also tell it to 'open a new ...
1
vote
2
answers
425
views
How do you know that a checkbox is selected to perform a function
I would like to know how can I identify that a checkbox is selected and then do something.
for example: I select the checkbox
"Google" and then I click on the button "Go" then the app opens to the ...
0
votes
0
answers
30
views
Run shell script command with user iteration
I want to execute a shell command in an Applescript application, but this command asks for a user confirmation ie: "Do you want to proceed with this operation and y/n?"
I want the answer to be yes, ...
2
votes
1
answer
312
views
Store AppleScript object in NSMutableDictionary
As part of an automation workflow I'd like to be able to store a reference to an applescript object inside an NSMutableDictionary. This is done, in effect, to be able to use variable variable names. ...
0
votes
0
answers
391
views
Need to get an output when a notification is displayed
I'm doing an applescript cocoa app and I'd like to run a function as a notification with the name "Finished Downloading" is displayed.
The function changes a value displayed in the main window of the ...
0
votes
1
answer
205
views
How can I use the Objective-C APIs listed in Script Editor's Library?
According to Script Editor, there are Objective-C APIs that can be used instead of AppleScript or JavaScript. Here's an example, from Terminal:
How do I actually use these? Presumably I'd need headers ...
0
votes
0
answers
147
views
How to make a table to load a list or array in Applescript-ObjC?
I need to make a table in a Applescript project, but I don't know how to make a table...
on myTable_(sender)
set myTable to {"Hello","World"}
end myTable_
0
votes
1
answer
701
views
AppleScript - How to Access Mail Directory?
I am trying to access folder in my mail using apple script. but did not succeed.
My folder Name is : BLABLABLA , it resides under Apple Mail .
I think that it should be :
set myDir to mailbox "...
1
vote
1
answer
1k
views
HOW TO: display a check mark, disable a menu item, refresh a menubar
I am trying to set up some simple services on a Mac using a menubar/status script with applescript.
After having read the web up and down, bearing in mind I am new to scripting, it seems I have ...
0
votes
1
answer
141
views
applicationWillFinishLaunching_(aNotification) does not execute in AppleScript
In summary: Using AppleScript-objc and Xcode. applicationWillFinishLaunching_ in one project executes but in another project with identical code it does not execute.
In my main project I want to test ...
2
votes
1
answer
760
views
Unrecognized Selector in Swift/Objective-C/Applescript project
I'm getting the following message when running this simple ASObjc program interfaced with Swift:
*** -[ASMyObject foo:]: unrecognized selector sent to object <ASMyObject @0x60c000226fe0: OSAID(4) ...
0
votes
0
answers
172
views
Using Alias in AppleScript-ObjC in Xcode
I am attempting to use Xcode and AppleScript-objC to zip a folder containing some network test files but get an error on this section of code.
set homeFolder to (path to home folder)
set homeDesktop ...
0
votes
0
answers
569
views
How to run a AppleScript with thread when a button pressed?
I have created a NSthread in main.m, but what I want is to execute a section of AppleScript in the AppDelegate.applescript with thread when I press a button, the AppleScript like:
on run1_(sender)
...
1
vote
2
answers
259
views
In an Xcode mac osx AppleScript app (AppleScriptObjC), what is the command to I minimize the main app window?
I'm trying to write an app that should keep running after a button is clicked so I want to minimize it. I have the app main window theWindow connected to the placeholder
property theWindow : missing ...
-2
votes
1
answer
74
views
applicationwillfinishaunching handler not working applescript xcode
My on applicationWillFinishLaunching_(aNotification) handler isn't working. It works with my "xib" IB, but it doesn't work with my ".storyboard" IB. Where in the IB should I look? I have searched ...
0
votes
1
answer
169
views
Use AppleScript to change System Preferences > App Badges
I'm trying to use AppleScript to control System Preferences in the background. Specifically, I am trying to Enable / Disable "Badge app icons" for each app. There is no global way to enable / disable ...
0
votes
1
answer
60
views
No C experience, using Xcode AppleScriptObjC
Trying to get variable result from bash terminal and store in Xcode property variable. No C experience, Xcode project is in AppleScript.
1
vote
1
answer
199
views
Automatically Add Application to Allow assistive access
Part of an application changes the scroll direction of the trackpad with this AppleScript (used as AppleScriptObjC in Xcode AppleScript application).
When running, it often pops up with a message ...
0
votes
1
answer
65
views
ApplescriptObjC path to disk (host drive)
As part of a larger project I would like to get the path of the Mount Point of the device which hosts my script.
I have designed the following code in Script Editor, however, upon implementing it in ...
0
votes
2
answers
780
views
How to Hide the source code in xcode?
I am writing an app using applescriptobjc in xcode, and while making the archive I see the source code is still inside the package, is there a way to hide it or transform it completely to binary code?
...