Re: Get only the name of the file, instead of the whole path!
Re: Get only the name of the file, instead of the whole path!
- Subject: Re: Get only the name of the file, instead of the whole path!
- From: Luther Fuller <email@hidden>
- Date: Fri, 18 Jan 2008 11:03:31 -0600
On Jan 18, 2008, at 9:34 AM, deivy petrescu wrote:
On Jan 18, 2008, at 10:13, Luther Fuller wrote:
On Jan 18, 2008, at 8:47 AM, deivy petrescu wrote:
On Jan 18, 2008, at 8:44, Luther Fuller wrote:
On Jan 17, 2008, at 9:25 PM, deivy petrescu wrote:
Ed, are you sure?
TID is global for a session. That is if you set it, you have to
restart SE to get back the default TID.
So, ... what about AppleScripts saved as an application? Script
Editor is no longer involved.
Uses the default ASTID. (just tested)
Does this mean that I don't have to worry about resetting the TIDS
to default in applications?
I follow the practice of setting the TIDS just before use
and doing nothing with the TIDS after use.
I don't restore the previous or default value.
You do not need to reset ASTID for any apps.
Actually setting ASTID at the end of an app has no effect whatsoever.
This is inline with Shane's explanation of AS instances.
When you launch the App it is not running under the open SE, it
launches the app (another instance of AS) and then it runs.
By the way, I know there use to be one case (that I can recall)
that using text item delimiters and AppleScript's text item
delimiters would yield different results.
I have to find this discussion somewhere, but for precaution I
always use ASTID instead of TID.
This is the first time I've seen any reference to "text item
delimiters" as opposed to "AppleScript's text item delimiters". So, I
opened Smile and checked-out "text item delimiters". It works!
Then, I went to my old copy of ALG [1993] and found that there is a
"text item delimiters" property and it's a property of Scriptable
Text Editor.
Next, I looked-up "text item delimiters" in the most recent copy of
"AppleScriptLanguageGuide.pdf" [Dec 07] and found that it always
appears preceded by "AppleScript's".
Where is the distinction between "AppleScript's text item delimiters"
and "text item delimiters" documented?
_______________________________________________
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