• 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
Re: Run an Applescript command inside a tell application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run an Applescript command inside a tell application


  • Subject: Re: Run an Applescript command inside a tell application
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 12 Jul 2007 06:21:12 -0700

On Jul 12, 2007, at 6:13 AM, David Bradley wrote:

So, how do I run the command within the tell application section.

Well, one way to do it is to use a subroutine.

tell application "QuarkXPress"
   -- code goes here
   set theImagesFile to my GetImagesFile (theFile)
   --more code goes here
end tell

on GetImagesFile (theFile)
   return POSIX file theFile
end GetImagesFile

--
--------------------------------------------------------
      Misquotation of unattributed, trite
        metaphysical saying goes here.

  Stupid ascii               Unnecessary notice of
graphic goes here.        responsibility goes here.
---------------------------------------------------------

_______________________________________________
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
References: 
 >Run an Applescript command inside a tell application (From: David Bradley <email@hidden>)

  • Prev by Date: Run an Applescript command inside a tell application
  • Next by Date: Scripting 2x QT Player?
  • Previous by thread: Run an Applescript command inside a tell application
  • Next by thread: Re: Run an Applescript command inside a tell application
  • Index(es):
    • Date
    • Thread