• 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
Smile vs AppleScript Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Smile vs AppleScript Editor


  • Subject: Smile vs AppleScript Editor
  • From: Gil Dawson <email@hidden>
  • Date: Wed, 03 Apr 2013 11:51:48 -0700

Hi--

I'm having a little problem that expect someone will recognize right away.

The following scriptette:

set aFileRef to open for access file "MBProHD:Users:gil:temp.txt"
close aFileRef

Gets the following result in AppleScript Editor:

tell current application
open for access file "MBProHD:Users:gil:temp.txt"
--> 230
end tell
tell application "AppleScript Editor"
close 230
end tell

But, in Smile, it gets an error (with "close aFileRef" hilighted):

Expected a reference. 

Can you please help me understand the difference?

--Gil
 _______________________________________________
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: Smile vs AppleScript Editor
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Script to pause/suspend Safari when in the background and resume when in foreground
  • Next by Date: Re: Smile vs AppleScript Editor
  • Previous by thread: Re: Safari
  • Next by thread: Re: Smile vs AppleScript Editor
  • Index(es):
    • Date
    • Thread