• 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: Just returning Filename... not whole path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just returning Filename... not whole path


  • Subject: Re: Just returning Filename... not whole path
  • From: Brett Conlon/HU/AU/SonyDADC <email@hidden>
  • Date: Tue, 25 Oct 2005 10:56:53 +1000


Heh, just had a fire alarm in the building and I had to quickly finish up a thank you email I was sending to all who helped me.... but sent it to Eric only. D'OH!!!

Basically I said that it was Eric and Yvan's suggestion of enclosing the AskTitle handler code in the tell statement and it is all working.... I'm pleased it was such a simple fix!

And a big thanks to Michelle for her off-list help!

I can now roll out v1 of the scrip to the studio.

You are all da best!!!

Many thanks,

Cojcolds




Eric C Saunders <email@hidden>


I believe you need Finder to get the name. When you wrote "tell application "Finder" to activate", it is the same as :
tell application "Finder"

       activate

end tell

so I think you can solve your error by replacing "tell application "Finder" to activate with:


tell application "Finder"

  activate


<snipped>

end tell


every command that needs an application to function has to be inside a tell block targeting that application.



Eric

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Just returning Filename... not whole path (From: Eric C Saunders <email@hidden>)

  • Prev by Date: Producing Unicode-only characters [was: Finding \t, \r, \n reliably]
  • Next by Date: curl ... file listings...
  • Previous by thread: Re: Just returning Filename... not whole path
  • Next by thread: Re: Just returning Filename... not whole path
  • Index(es):
    • Date
    • Thread