• 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: Changing the name of a file in the temporary items folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the name of a file in the temporary items folder


  • Subject: Re: Changing the name of a file in the temporary items folder
  • From: Skeeve <email@hidden>
  • Date: Mon, 10 Dec 2007 08:25:23 +0100

J. Stewart wrote:

It isn't?
It isn't. Of course you can move it to the trash. But then it's not deleted it's just in the trash. Of course you can empty the trash. But then you delete everything in there.

So what if the script is not for you alone but some production code?

Don't you think that some users will be annoied if something lands in their trash. Even worse: Some users might have moved some things to trash and by the time they noticed, your code already emptied the trash.

So this is what I call "not clean".

Just what is the problem you're having with the Finder's commands or the unix "rm" command?

The problem is (and I am repeating myself here the thousands (no... I'm exaggerating) time): I'm just lamenting that there is no pure Applescript way to move a file and give it a new name in one step. But this discussion is over (for me).

Using "rm" is possible but for my originating problem not needed as I can use "cp" which allows what I need.

OTOH: Using "do shell scrip" is nothing I like to do often. Guess about all the potential security risks if you don't check enough eforehand. But that would be another therad.

_______________________________________________
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: Changing the name of a file in the temporary items folder
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Changing the name of a file in the temporary items folder (From: "J. Stewart" <email@hidden>)

  • Prev by Date: Re: Finding out whether an application is already active?
  • Next by Date: Change printer in Leopard
  • Previous by thread: Re: Changing the name of a file in the temporary items folder
  • Next by thread: Re: Changing the name of a file in the temporary items folder
  • Index(es):
    • Date
    • Thread