Re: Convert a lot of files from eps to svg format without buying Illustrator
Re: Convert a lot of files from eps to svg format without buying Illustrator
- Subject: Re: Convert a lot of files from eps to svg format without buying Illustrator
- From: has <email@hidden>
- Date: Sat, 20 Sep 2014 08:29:59 +0100
Shane Stanley wrote:
> On 19 Sep 2014, at 9:02 pm, Alex Zavatone wrote:
>
>> Download the eval copy. You've got 30 days.
For those wondering, iDraw includes embedded _javascript_ support; see
<http://www.indeeo.com/idraw/new>.
Short answer to the OP is: learn _javascript_. _javascript_ sucks in all
kinds of ways but it's well supported and rising in popularity,
whereas AS (which also sucks in many ways, mind) has been slowly
sliding into the weeds for years.
> Ah. I only saw it was on the App Store, and didn't look much
further. Interesting looking plug-ins -- just a shame that it
doesn't seem to make a connection with other apps.
The developer docs (http://www.indeeo.com/idraw/plugins/api/intro)
indicate it's using Gus Mueller's JSTalk and can access the Cocoa
frameworks; therefore it can communicate with 'AppleScriptable'
applications via the Scripting Bridge framework. Although given that
SB is a shoddy, broken piece of junk I would advise caution as it
has a nasty habit of working up to a point, then pooping all over
you. I definitely wouldn't trust it for production work[1][2].
FWIW, it may also be possible for JSTalk to use AppleScript via the
AppleScript-ObjC bridge[3] to talk to other apps. It's not something
I've tested myself outside of ObjC-based apps, but Clark Goble's
successfully called AS from Python-PyObjC this way so the principle
is sound. The trick would be to put your ASOC-based scripts into a
bundle of their own, then make the host process load them as
ASOC-based 'classes', which can then be called via the JS-ObjC
bridge.
Calling into AS from other languages just to talk to other apps is a
ridiculous kludge, mind, but the AppleScript team have screwed up
every other solution, so going through AS is the only competent
option left. I recently posted a quick HowTo at <http://macscripter.net/viewtopic.php?pid=175086#p175086>,
though it only covers calling into ASOC from ObjC, not from other
languages. When I have some time I'll figure out how to do it from
other languages and write that up as well.
Regards,
has
[1] e.g. The last SB user I talked to had just spent a few months
porting his employer's automation scripts from AS to ObjC+SB, only
for the whole lot to go tits-up one day thanks to SB suddenly
deciding to crap out on the latest CC release. He uses Adobe's
embedded _javascript_ now.
[2] Unfortunately the forthcoming _javascript_ for Automation is also
a shoddy, broken piece of junk, so it won't be a competent
alternative to AppleScript either.
[3] For light tasks, you could also use NSAppleScript or
NSAppleScriptUserTalk, but those are an absolute chore to interact
with and hopeless for non-trivial work.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden