[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I rename a file using AppleScript?

Posted on 2007-08-03
1
Medium Priority
?
4,849 Views
Last Modified: 2013-11-05
Hi there,

How do I rename a file using AppleScripter?

Here's the pseudo code of what I want to do:

rename "path to file" to "path to new file"

But I can't seem to find the applescript equivelant.

Please let me know if you can be of assistance, I'd like to do it without any user interaction, the new name is automatically generated and the original name is known.

Cheers
0
Comment
Question by:antum
1 Comment
 
LVL 24

Accepted Solution

by:
fridom earned 2000 total points
ID: 19630204
tell application "Finder"
set the name of the old_file_name to new_file_name

something along this lines should work.

Regards
Friedrich
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question