• 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: end tell issue..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: end tell issue..


  • Subject: Re: end tell issue..
  • From: Dave <email@hidden>
  • Date: Thu, 25 Sep 2008 10:57:48 +0100

Hi,

If you use the "to" form of the tell statement you do not need "end tell", e.g. the following are equivalent:


tell application "RapidWeaver" to open theFolder

or

tell application "RapidWeaver"
 open theFolder
end tell

The "tell X to Y" form is just shorthand syntax for when you just want to execute one command.

Hope this helps
Dave


On 25 Sep 2008, at 06:55, Ashwin Row wrote:

Hi,
In the code below the error I get is expected end of line but found end tell.
The code works with a simple end but when saved as a .app it creates an issue.


tell application "FileMaker Pro Advanced"
	activate
	tell database "Automator"
		tell record 1
			cell "Page Name"
			--set abc to "hi"
			set abc to cell "Page Name"
			display dialog abc
		end tell
	end tell
end tell

set theFolder to (POSIX path of ("/Applications/eShox/" & abc)) -- as alias
tell application "RapidWeaver" to open theFolder
end tell
end



Warm Regards, Ashwin Row ------------------------------------------------------ Software Developer | Fortune Infocomm Pvt. Ltd., Mumbai, India. Phone: +91 22 67997970 (Off) | +91 9820566420 (Mobile) Email: email@hidden email@hidden ------------------------------------------------------ Your preferred Mac & Win development partner.

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


This email sent to email@hidden


_______________________________________________
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: 
 >end tell issue.. (From: Ashwin Row <email@hidden>)

  • Prev by Date: Re: Getting the name of a Window with non-Scriptable App?
  • Next by Date: Re: Script to Sync iTunes Libraries Between Macs
  • Previous by thread: Re: end tell issue..
  • Next by thread: renaming a usb memory stick using applescript
  • Index(es):
    • Date
    • Thread