|
#9
| |||
| |||
|
Hello, tried the AppleScript hac but it doesn't work either: Quote:
Quote:
Last edited by Tex-Twil; December 19th, 2008 at 04:58 AM. |
|
#10
| ||||
| ||||
|
How did you build your application? LaunchServices/LSInfo.h has: Error -10828 kLSNoClassicEnvironmentErr = The Classic emulation environment was required but is not available. Looks like you are trying to run a Classic type application on 10.5.
__________________ MacBook Pro | Dell Mini Inspiron 9 | Mac Mini | Newton 2000 | iPhone | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. ~ Samuel Clemens | Rants | Photos |
|
#11
| ||||
| ||||
| Quote:
edit: ok I think Im a noob with Apple Script. In the how to is written "Open Script Editor and type in:". I just edited a new file using vim so I guess my error is here. Do I have to build the application ? how can I do it via command line ? EDIT2: I've tried this way: Quote:
Quote:
Quote:
Finally I set up a VNC server to my MacBook Pro and created the Application using the Script Editor. It works great Last edited by Tex-Twil; December 19th, 2008 at 06:30 AM. |
|
#12
| ||||
| ||||
|
So wait, you edited those with VIM and not ScriptEditor of AppleScript? /Applications/AppleScript/ -> open Script Editor and replace the /Users/me parts with your username in place of me
__________________ MacBook Pro | Dell Mini Inspiron 9 | Mac Mini | Newton 2000 | iPhone | @Work : Dell D620 & 2x20" + a lot of Macs | Workstation, VC & Fusion Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. ~ Samuel Clemens | Rants | Photos |
|
#13
| |||
| |||
| Yes that's what I did first cos I was connected to my mac only via ssh. But it's now fixed. see my previous post EDIT3.
|
|
#14
| |||
| |||
| isightapture over SSH WORK!!!
Over SSH 1. get process ID loginwindow "sudo killall -s loginwindow" return $PID 2. "sudo launchctl bsexec $PID isightcapture -t jpg /file.jpg" -EXAMPLE---- sudo killall -s loginwindow kill -TERM 35 sudo launchctl bsexec 35 isightcapture -t jpg /file.jpg ------------------------------- WORK!!! from screencapture SECURITY CONSIDERATIONS To capture screen content while logged in via ssh, you must launch screencapture in the same mach boot-strap bootstrap strap hierarchy as loginwindow: PID=pid of loginwindow sudo launchctl bsexec $PID screencapture [options] http://developer.apple.com/DOCUMENTA...capture.1.html Sorry for my english |
|
#15
| |||
| |||
| isightcapture over ssh
there's no need for creating gui apps or scripts, here's a workaround: connect to remote host via ssh, then type: ps ax | grep [l]oginwindow output will look something like 1381 ?? Ss 0:01.36 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console The PID is the first number in the output; now type sudo launchctl bsexec 1381 isightcapture -t png /somepic.png and voila |
![]() |
| Bookmarks |
| Tags |
| applescript, automator, isightcapture |
| Thread Tools | |
|
|