Saturday, 17 July 2010

AppleScript error: can't get window


hi everyone. there apps want position/size applescript, generate error saying "can't window." know how fix this?

example, if write:
code:
 tell application "sparrow" bounds of front window 
the error is:
code:
 "sparrow got error: can’t window 1." number -1728 window 1.
 

what have tried solve problem?

maybe sparrow isn't scriptable.

first thing try opening application's scripting dictionary in applescript editor. choose "open dictionary ..." file menu. choose sparrow.app list of applications. if don't see window class, doesn't support scriptable windows.

should refer actual scripting dictionary of app. otherwise you're guessing.


second thing try searching. google search terms: mac os sparrow script

first result:
http://dinhviethoa.tumblr.com/post/5967294192/applescript-with-sparrow

may 29, 2011: currently, sparrow supports sending emails using applescript. other scripting features added in further versions. ...
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment