Jump to content
nikffm

Workflow save file in editor

Recommended Posts

Hi, 

 

I love using nodepad++. Sadly I really often need some other IDE to to something. My workflow looks the following:

  • save file in sublime
  • change to some special IDE (in this case RStudio)
  • Do something to import the file (in this case run source('~/.../functions.R')

 

I really don't know wether it's good or bad that I did not find anything regarding this but: How can I do stuff within some program (here sublime) using Alfred Workflows? Using Applescript?

 

Thanks for any help (and I really hope this question is not to stupid, but I did not find anything...)

Edited by nikffm

Share this post


Link to post

Sublime Text doesn't have AppleScript support, as it's not a native application. The same applies to most IDEs.

The only thing you can do with them with AppleScript is to tell System Events to click on their menu items.

It's easy enough to open files in Sublime Text using open -a "Sublime Text" /path/to/file or its subl command-line tool, but that's about the limit.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...