• 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: oddities with a Mail rule & Numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oddities with a Mail rule & Numbers


  • Subject: Re: oddities with a Mail rule & Numbers
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 3 Jun 2017 17:43:15 +1000

G’day Phil

I presume you’re setting    theSpreadsheet  as a property?

If so, then this…

 set targetWord to "whatever"
tell application "System Events"
set theUserPath to (home folder's path as text)
end tell
set the theSpreadsheet to "Documents:myNumbers.numbers"
set theSpreadsheet to theUserPath & theSpreadsheet

because

open alias (my theSpreadsheet)
needs it set as a property

It should read…

set targetWord to "whatever"
tell application "System Events"
set theUserPath to (home folder's path as text)
end tell
set   tempTheSpreadsheet  to "Documents:myNumbers.numbers"
set (my theSpreadsheet) to theUserPath & tempTheSpreadsheet

The last 3 versions of Sierra have required any ‘my Variable' to be enclosed in brackets, ie (my Variable). Took me ages to change over 50,000 lines of coding in my full set of Apps.
Regards

Santa




On 3 Jun 2017, at 4:20 pm, 2551phil <email@hidden> wrote:

open alias (my theSpreadsheet)

 _______________________________________________
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: 
 >oddities with a Mail rule & Numbers (From: 2551phil <email@hidden>)

  • Prev by Date: oddities with a Mail rule & Numbers
  • Next by Date: Re: oddities with a Mail rule & Numbers
  • Previous by thread: oddities with a Mail rule & Numbers
  • Next by thread: Re: oddities with a Mail rule & Numbers
  • Index(es):
    • Date
    • Thread