AW: Applescript first steps. Joining shapes with a curvy line??

christian.sodl at orf.at christian.sodl at orf.at
Wed Nov 7 00:01:31 PST 2007


 Hi,
There is a connect command in the OG Applescript Directory.

tell application "OmniGraffle Professional 4"
	set objlist to selection of front window
	tell canvas of front window
		repeat with i from 1 to (objlist's length) - 1
			connect objlist's item i to objlist's item (i + 1)
		end repeat
	end tell
end tell
Also you can add with properties {line type:curved,....} to specify some parameters of the generated lines.
Best Regards
Christian Sodl

-----Ursprüngliche Nachricht-----
Von: omnigraffle-users-bounces at omnigroup.com [mailto:omnigraffle-users-bounces at omnigroup.com] Im Auftrag von Ivan Rostas
Gesendet: Mittwoch, 31. Oktober 2007 12:10
An: omnigraffle-users at omnigroup.com
Betreff: Applescript first steps. Joining shapes with a curvy line??

Hi Omni gang

I am about to set sail learning the basics of Applescript to attempt to automate some of the processes in my OG4-reliant business.

Could anyone give me a gentle push-off the pier by describing the Applescript required to have a curvy line link a number of highlighted objects?  Say I multiple select some objects on screen, I would like to have a 'button' in the bottom corner of the page with an Action that runs a little Applescript to have a curvy (sine-like?) line link the objects - however not link back to the first object.  That will be done manually, so I stay alert.

Can anyone help?  Obviously I've done this manually and done a Copy as Applescript, pasted that into an Action button, etc.  But obviously the absolute references to x&y positions to draw to screen are not going to get me anywhere.

Any assistance is of course, greatly appreciated.

Cheers

Ivan

Queensland, Australia
_______________________________________________
OmniGraffle-Users mailing list
OmniGraffle-Users at omnigroup.com
http://www.omnigroup.com/mailman/listinfo/omnigraffle-users


More information about the OmniGraffle-Users mailing list