Questions tagged [scriptable]

42 questions
12
votes
5 answers

How do I make a nasty C++ program scriptable with Python and/or Lua?

I'm confronted with the task of making a C++ app scriptable by users. The app has been in development for several years with no one wasting a thought on this before. It contains all sorts of niceties like multithreading, template wizardry and…
Manuel
  • 129
  • 3
11
votes
7 answers

How can I make my application scriptable in C#?

I have a desktop application written in C# I'd like to make scriptable on C#/VB. Ideally, the user would open a side pane and write things like foreach (var item in myApplication.Items) item.DoSomething(); Having syntax highlighting and code…
tom greene
  • 5,361
  • 9
  • 39
  • 52
5
votes
2 answers

Rhino: How to get all properties from ScriptableObject?

I am using a Javascript object as an object with configuration properties. E.g. I have this object in javascript: var myProps = {prop1: 'prop1', prop2: 'prop2', 'prop3': 'prop3'}; This object (NativeObject) is returned to me in Java…
Vitaly Dyatlov
  • 1,872
  • 14
  • 24
4
votes
1 answer

Why isn't making my Swift app scriptable working?

I'm trying to make a Swift app, 'Earwig.app', MacOS, scriptable. I've started by shamelessly stealing an example from Making Cocoa Application Scriptable Swift, adding two files, a .sdef and a .swift as listed below. I've set Scriptable and…
Kim Aldis
  • 583
  • 1
  • 4
  • 15
3
votes
1 answer

Why the mesh has been marked as non-accessible when adding MeshCollider from assetBundle and how to solve it?

I have a scriptable asset containing a fxbModel on a GameObject variable and with it i'am doing this: model = Instantiate(caAsset.model, origin); fbxComponents.All(fbxComponent => fbxComponent.gameObject.AddComponent()); Is the asset…
row
  • 131
  • 2
  • 11
3
votes
1 answer

Scriptable Application Example

Evidently, there's a way to make my GUI application scriptable with AppleScript. So for instance, I could have a command line app (like run from a LaunchDaemon) that tells my GUI app to post a sidebar notification. Does anyone have a simple example…
Volomike
  • 23,743
  • 21
  • 113
  • 209
2
votes
1 answer

When uploading new files to FTP server, how to prevent reupload of files that were deleted on the server meanwhile

I need to automate the upload of some files from client PCs to a central server. We're building central statistics for an online gaming community, processing game replay files. target is my own small VPS server running ubuntu upload file size…
2
votes
2 answers

Providing my own objects for "make new" in my scriptable application

This is a question about implementing a scriptable application using Cocoa Scripting. My app's scriptable application object contains elements of a custom class, let call it flower. In the .sdef file, the Cocoa class for flower is specified as…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
2
votes
1 answer

php scriptable web browser

I want a url redirect tracer function in the php such as http://www.wheregoes.com/ . I want to detect four kinds of redirects: Http 301 redirect Http 302 redirect meta tag redirect javascript redirect If i use curl, i can easily detect 301, 302…
Danil Chernokalov
  • 755
  • 1
  • 10
  • 31
1
vote
0 answers

Why is the rectangle not showing on the widget?

Since I am still learning the basics of JavaScript, can someone suggest me a possible way to solve the error of this Scriptable code? (I am trying to draw a simple rectangle at the centre of the widget). Please, I don’t want to write the solution…
user18530275
1
vote
1 answer

Notion widget by Scriptable

I've tried to create Scriptable widget using Notion API. I need to get count of page inside DB. So, I used guide to create token and share DB, and by this guide I create cURL request: curl 'https://api.notion.com/v1/databases/%DB_ID%/query' \ -H…
Sanek Zhitnik
  • 716
  • 1
  • 10
  • 25
1
vote
0 answers

WeatherLine iOS Widget background gradient opacity

I’m trying to make the background gradient of this scriptable iOS widget more transparent but I can’t figure out how and I’m not familiar to JavaScript. https://github.com/italoboy/Full-Weatherline-Widget This is the code where I think the default…
Hige Mynx
  • 151
  • 13
1
vote
1 answer

Final cut pro custom shares to my scriptable application which is not responded

I'm trying to develop osx application that is respond final cut pro custom share. I have been looking for references a lot for 2 weeks. And I did followings. Createed sdef …
muyoungko
  • 73
  • 2
  • 8
1
vote
0 answers

Cocoa scripting help when desired data is not held in NSApplication base scripting object

I have a cocoa application that I'm trying to make scriptable. It has a model class (subclass of NSObject) including an NSArray property, which holds a number of custom "Element" objects of a separate class. I like this design pattern for this…
matthewjselby
  • 112
  • 2
  • 8
1
vote
2 answers

What can it mean if an object is scriptable?

Exactly what the title says. Note, this is not about "subscriptable" objects.
tzot
  • 92,761
  • 29
  • 141
  • 204
1
2 3