search for: osascript

Displaying 12 results from an estimated 12 matches for "osascript".

Did you mean: msscript
2010 Sep 03
0
rmate osascript workaround for e-texteditor on windows?
First, thanks very much for making rmate available. I'm having trouble porting it to e-texteditor for windows, though, (specifically the send-line command) because osascript is mac-only. Is there a way to send selections in e-texteditor to the windows version of R.app? Thanks! Dan
2019 Jun 08
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...xx.xxx.xxx.xxx EXECUTE ups-back-on-line AT COMMBAD ups at xxx.xxx.xxx.xxx START-TIMER upsgone 75 AT COMMOK ups at xxx.xxx.xxx.xxx CANCEL-TIMER upsgone bin/upssched-cmd #! /bin/sh case $1 in upsgone) logger -t upssched-cmd "Lost communication with UPS" /usr/bin/osascript -e 'tell app (path to frontmost application as text) to display dialog "Lost contact with UPS server" buttons {"OK"} default button 1 with icon note' ;; on-battery) logger -t upssched-cmd "UPS is running on battery" /usr/bin/osascrip...
2011 Sep 13
1
Invoking host system's programs with code running under Wine
Hi everyone! Recently I've made up my mind to code together a small plug-in for foobar2000 so it would go better with Mac OS X (Growl notifications, Adium statuses etc.). For that I need a method of running the AppleScript interpreter 'osascript' from inside the plugin. I wonder if Wine provides its own way to do that, or at least allows to call fork()?
2017 Jun 10
1
Apple Mac slave
On Fri, 9 Jun 2017, Robbie van der Walle wrote: > ... and also still open is the notification on the Mac. If notify-send is available on the Mac, then perhaps this will work: In upsmon.conf on the Mac you need NOTIFYCMD /usr/sbin/upssched (or wherever this goes on a Mac) NOTIFYFLAG ONBATT SYSLOG+EXEC In upssched.conf you need CMDSCRIPT /usr/sbin/upssched-cmd (or wherever this
2017 Jun 09
2
Apple Mac slave
On Jun 9, 2017, at 1:58 PM, Robbie van der Walle <rvanderwalle at gmail.com> wrote: > > What I wonder if the shutdown is done proper. Does the shutdown command use umount to prevent disk corruption? Yes, it prevents filesystem corruption, but I am not sure if it bothers to save the desktop state. You can check the "last" logs to see if it was cleanly shut down: $ last
2017 Jun 12
4
Apple Mac slave
...7 Sun Jun 4 21:52 - shutdown (7+10:43) However, the "-u" flag did not seem to keep the Mac running for long after the shutdown (certainly seemed shorter than five minutes). Maybe I can test this on another machine with the full NUT stack later. Thanks for posting the osascript example - that looks useful!
2017 Jun 11
0
Apple Mac slave
...will look in to it. > >> and also still open is the notification on the Mac. > > I used to have a script that would send UDP notifications to Growl, but that was before OS X notifications made Growl mostly obsolete. I can dig that up if it is of interest. No thanks, I can use osascript to notify. Kind Regards, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170611/d21ed3d8/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed.....
2012 Mar 25
0
Spotlight comments (extended attributes) are not synced
...years ago, on OSX 10.4 I was faced with the slow update of some Finder attributes. I was working on a script that worked in fact, but apparently did not consistently because of the delay, a very annoying problem tht it took time to identify. The solution that someone suggested to me was : osascript -e 'tell application "Finder" to update folder (Mac path to the target folder)' I am not sure this would solve the current problem, but it is worth trying...... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/piperma...
2006 Aug 26
2
Importing data from clipboard on Mac OSX
Dear R users, I am trying to get data from the clipboard into R on MacOSX. I tried the following, but got an error message: read.delim("clipboard") Error in file(file, "r") : unable to open connection In addition: Warning message: unable to contact X11 display Obviously, I'm not running R using X11. I'm wondering, can I import data from the clipboard on MacosX?
2017 Jun 14
0
Apple Mac slave
...21:52 - shutdown (7+10:43) > > However, the "-u" flag did not seem to keep the Mac running for long after the shutdown (certainly seemed shorter than five minutes). > > Maybe I can test this on another machine with the full NUT stack later. > > Thanks for posting the osascript example - that looks useful! > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser -------------- next part -------------- An HTML attachment was scrubb...
2006 Jul 04
1
Exporting tables to RTF?
...o work because I haven't managed to figure out how to formulate the escape codes. My AppleScript commands have to be in the form of: tell application "Nisus Writer Express" to <do something or other> Can anyone tell me how to escape such statements so I can pass them to osascript (a shell program that runs AppleScript) and (by extension) pass them to system()? Thanks in advance for any help anyone can provide. Aaron ----- Aaron Solomon (ben Saul Joseph) Adelman E-mail: Aaron.Solomon.Adelman at gmail.com, adelmaas at musc.edu Web-sites: http://weirdthingoftheday.blogs...
2011 Nov 02
12
[Bug 8566] New: Spotlight comments (extended attributes) are not synced
https://bugzilla.samba.org/show_bug.cgi?id=8566 Summary: Spotlight comments (extended attributes) are not synced Product: rsync Version: 3.0.9 Platform: All OS/Version: Mac OS X Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org