• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript Subroutines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript Subroutines


  • Subject: AppleScript Subroutines
  • From: Rob Linton <email@hidden>
  • Date: Thu, 29 Dec 2005 12:14:21 -0600

Anyone have any luck using subroutines (functions) in AppleScript with SAP?

I've been reading here: <http://developer.apple.com/documentation/ AppleScript/Conceptual/AppleScriptLangGuide/AppleScript.d5.html> but cannot reproduce the effect of a function when scripting SAP.

-R


(* FOC suboutine *)
on doFOC()
try
tell application "SAPGUI 6.40rc1"
activate

--nav to va01 begin rma

set txt of OKCode field ("/app/con[0]/ses[0]/wnd[0]/tbar[0]/okcd") to "/nva01"
send virtual key 0 to main window ("/app/con[0]/ses[0]/wnd[0]")
set txt of combo text field ("/app/con[0]/ses[0]/wnd[0]/usr/ ctxtVBAK-VKORG") to theSalesOrg
set txt of combo text field ("/app/con[0]/ses[0]/wnd[0]/usr/ ctxtVBAK-AUART") to "fd"
set txt of combo text field ("/app/con[0]/ses[0]/wnd[0]/usr/ ctxtVBAK-SPART") to "01"
send virtual key 8 to main window ("/app/con[0]/ses[0]/wnd[0]")
return true
end tell
end try
end doFOC
(* end FOC subroutine *)
doFOC -- does nothing


_______________________________________________
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


  • Follow-Ups:
    • Re: AppleScript Subroutines
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Removing a Keychain Item
  • Next by Date: Re: Opening Finder windows in a dual monitor setup
  • Previous by thread: Re: Removing a Keychain Item
  • Next by thread: Re: AppleScript Subroutines
  • Index(es):
    • Date
    • Thread