Help for processing FrameMaker files - responding to dialogs on open
Help for processing FrameMaker files - responding to dialogs on open
- Subject: Help for processing FrameMaker files - responding to dialogs on open
- From: Walt Sterdan <email@hidden>
- Date: Wed, 4 Jan 2006 20:09:56 -0600
<x-tad-smaller>I'm still bumping my head against an ongoing problem using Applescript with FrameMaker and need a pointer in the right direction.
I'm trying to adapt the SaveAsMIF script supplied with Adobe FrameMaker; I've solved a number of minor problems and now I'm faced with having Applescript either answer or ignore one of three dialogs that might pop up when opening files; the script currently reads:</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>with timeout of 6000 seconds</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> set appName to "Framemaker 6.0"</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> set Foldername to (choose folder with prompt "Select a folder to open: ") as string</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> set FolderListing to list folder (file Foldername)</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> </x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> tell application appName</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> repeat with i from 1 to the number of items in FolderListing</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> set FolderItem to item i of FolderListing</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> if folder of (info for file (Foldername & FolderItem)) is false then</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> if file type of (info for file (Foldername & FolderItem)) is "FASL" then</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> open file (Foldername & FolderItem)</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> save document 1 in file (Foldername & FolderItem & ".mif") as "MIF "</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> close document 1 without saving</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> end if</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> end if</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> end repeat</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller> end tell</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>end timeout
</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>The three dialogs that occasionally pop up (but can be ignored for MIF creation) are:</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>"Missing File", where it would be handy to select the radio button "Ignore All Missing Files" then press "Continue"
</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>"Some important graphics could not be displayd... grey boxes." where pressing "OK" is all that's needed
</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>"File contains unresolved cross-references..." where pressing "OK" is all that's needed</x-tad-smaller><x-tad-smaller>
</x-tad-smaller><x-tad-smaller>During batch processing, it's possible for all, some or none to show up in the same file; what's easiest way to set up Applescript to respond to any or all of them when opening a file? It's probably something simple, but I'm still drawing a blank; I'm using OSX 10.3.9, but FrameMaker's version 6 running under Classic.</x-tad-smaller><x-tad-smaller>
</x-tad-smaller> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden