"refresh" the Finder?

Frank D. Engel, Jr. fde101 at fjrhome.net
Fri Feb 4 09:34:17 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Warning!! Warning!!

Using "/Users/" & $USER -- this is a dangerous assumption, as it is 
possible for the user's home directory to be somewhere completely 
different, such as on a network volume!

Rather, you should use something like this:

delete folder $HOME & "/.Trash/foldername"

The $HOME environment variable is present on most *NIX systems 
(including OS X) and points to the correct home directory, even if it 
is on a server or in some location other than the default.

On Feb 3, 2005, at 11:12 PM, James Cass wrote:

>>>> Does anyone know if there's a way to remove a
>>>> specific folder from the trash using AppleScript?
>
> Come to think of it, why not use the Rev "delete folder" command?  
> Again, if the folder is already in the Trash, you could do this:
> 	delete folder "/Users/" & $USER & "/.Trash/foldername"
>
> Goodnight Everybody!  Drive home safely!
> -James
>
>
> On Feb 3, 2005, at 10:55 PM, James Cass wrote:
>
>> Sorry if I'm way off on this but, I just jumped in here.
>> 1.  If you just want to update a Finder window, you can do that with 
>> the Applescript "update folder pathToFolder".  I've had to use this 
>> to refresh the contents of open Finder windows.  I don't do that any 
>> more though.
>> 2.  If you want to delete something that's already in Trash (seems 
>> weird), you can use the shell command:  rm 
>> /Users/$USER/.Trash/filename
>>
>> HTH...James
>>
>>
>>
>> On Feb 3, 2005, at 10:32 PM, Chipp Walters wrote:
>>
>>> Chris,
>>>
>>> I seem to remember something about the ability to 'touch' a 
>>> directory using shell scripts which should do what you want.
>>>
>>> See,
>>> http://www.dartmouth.edu/~rc/classes/ksh/print_pages.shtml
>>>
>>> Or Google Mac shell touch.
>>>
>>> -Chipp
>>>
>>> Chris Sheffield wrote:
>>>
>>>> The problem now is that it just places the folder in the Trash, and 
>>>> it
>>>> didn't do that before.  Does anyone know if there's a way to remove 
>>>> a
>>>> specific folder from the trash using AppleScript?  I tried using 
>>>> the empty
>>>> command followed by the reference to the folder in the trash, but 
>>>> it didn't
>>>> work.  If not, I'll just empty the trash, but I thought that's 
>>>> probably not
>>>> a very nice thing to do.  Shouldn't be a big deal in this case, 
>>>> however.
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCA4fq7aqtWrR9cZoRArqZAJ4hbh819X/qG9zCe3GmLjGAZDlm+QCfVVTY
jJUO1CF1apaTVLIlSazLJSM=
=fdZI
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list