Questions tagged [applescript-objc]

AppleScriptObjC is a framework that allows Cocoa applications to be written in AppleScript. It obsoletes AppleScript Studio as of Mac OS X 10.6.

274 questions
0
votes
1 answer

Applescript Syntax (Multiple Args) Inside Objective-C File

I have been working on trying to run an Applescript from within Objective-C that queries out to the terminal to run some shell commands. I am running into an issue with how to format the command within Objective-C, so that the script object gets…
0
votes
0 answers

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 sheets to include from .xls?", "Which pages from the…
DEls
  • 241
  • 3
  • 14
0
votes
1 answer

Trouble using Applescript in ApplescriptObjc Xcode project

I'm very new to Applescript-ObjC and am trying to do something pretty simple. I have this applescript app that I've been using to convert text to Title Case and ALL CAPS. The app works great. But when I try to bring it into the Xcode…
tdnelson2
  • 555
  • 1
  • 4
  • 13
0
votes
2 answers

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 name?" When I execute the code the command "Say"…
0
votes
1 answer

Can't get relative location of local files - "path to me as text " not working in Xcode

I have having real trouble getting the path of objects within my Xcode project - previously in another thread adayzdone suggested to use: set parentDirectory to POSIX path of ((path to me as text) & "::") Which works brilliantly... in Applescript…
moonmonkey
  • 125
  • 9
0
votes
2 answers

Xcode 6 wire IBOutlets Cocoa-Applescript

I'm trying to build a Cocoa-AppleScript app using Xcode 6 but I am unable to connect my IBOutlets dra. Specifically, I think I'm supposed to click and drag from IB to an AppleScript property i.e. property theLabel: missing value but that little…
PopKernel
  • 4,110
  • 5
  • 29
  • 51
0
votes
2 answers

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 finalNumber to finalNumber + faceNumber's…
James
  • 213
  • 1
  • 3
  • 13
0
votes
1 answer

Why can't I add these two strings together?

on oneButtonClicked_(sender) set faceNumber's setStringValue() to faceNumber's stringValue() & "1" end oneButtonClicked_ I get this error: "Can’t make «class ocid» id «data optr000000000058B37BFF7F0000» into type list, record or text. (error…
James
  • 213
  • 1
  • 3
  • 13
0
votes
1 answer

How to get the value of a slider in ApplescriptObjC?

property slider : missing value if slider's integerValue = 5 then -- Do something end if This code won't work. Any ideas why?
James
  • 213
  • 1
  • 3
  • 13
0
votes
0 answers

xCode Applescript: disable a UI button

i am building a simple(ish) applescript app using xCode and not the applescript app. I have set up several buttons via the GUI and have linked them to the retrospective code via the drag and drop method in xcode on ThisIsMyButton_() …
Simon Davies
  • 3,668
  • 9
  • 41
  • 69
0
votes
1 answer

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 check if it's nil with AppleScriptObj-C?…
patej
  • 1
0
votes
1 answer

Applescript works in Script Editor but not in Xcode 5

Good evening all, I am trying to understand why I can run the below script in Applescript Editor but am unable to successfully run it in an Xcode Cocoa-Applescript application. Can someone please explain why this function will not run in Xcode and…
kevin d
  • 13
  • 2
0
votes
1 answer

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 "12/12/12" set MyTempTextInfo to (date…
Tim Joe
  • 475
  • 8
  • 18
0
votes
3 answers

Rounding When Last Number is Zero - Applescript

I've been using a simple little script for rounding numbers to the hundredths decimal place, however I've noticed that when the number ends in zero, it rounds up to the next decimal place. I need to preserve this decimal place. For example:…
pianoman
  • 815
  • 2
  • 16
  • 36
0
votes
1 answer

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.
Krunal Darji
  • 568
  • 1
  • 3
  • 11