Re: Just returning Filename... not whole path
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