The Mac Observer

 
   
 
Extracting image from word document and store it in filesystem using applescript
Posted: 30 July 2009 07:23 AM   [ Ignore ]
MacMac
Rank
Total Posts:  2
Joined  2009-07-30

I need applescript steps or commands to extract the selected image from word document and then save that image in PNG or JPEG format on the local filesystem.

[ Edited: 31 July 2009 02:51 AM by shivank.aggarwal ]
Profile
 
 
Posted: 01 October 2009 10:02 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRank
Total Posts:  849
Joined  2001-06-17

I would look into accessing the clipboard in AppleScript.  You may need to use an applescript extension.  As a fallback, you could script key commands using GUI scripting.

Then it’s a matter of getting that image in an AppleScript friendly image editor like GraphicConverter, and saving that file.

Profile
 
 
   
 
 
  • Buy Stuff, Support TMO!
  • __________
  • Macworld Expo 2010 Hotel Deal
  • TMO on Twitter!

{embed=""}