• 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
Double Tell - Tell by Variable Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Double Tell - Tell by Variable Question


  • Subject: Double Tell - Tell by Variable Question
  • From: Dave <email@hidden>
  • Date: Thu, 25 Jun 2015 14:19:28 +0100

Hi,

How do I do this:

on doSomething(theAppName)

tell application theAppName
activate 

—
— Code for theAppName Goes Here
—

return myWindowTitle
end tell

end doSomething

I’ve looked at this:

http://stackoverflow.com/questions/4609351/applescript-tell-by-variable-dilemma


But you still need to hardwire a String into the Script, is there anyway of avoiding this?

I’m calling the Script via the AppleScriptObjC Bridge, and I’m like to pass in the App Name. I could pass in the process ID if this would help? 

Thanks a lot,
All the Best
Dave
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Double Tell - Tell by Variable Question
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Hide ribbon in Word:mac 2011
  • Next by Date: Re: file "locked" property...
  • Previous by thread: Re: file "locked" property...
  • Next by thread: Re: Double Tell - Tell by Variable Question
  • Index(es):
    • Date
    • Thread