Problems with file renaming Applescript
Hello all and thanks in advance! I am currently working on a set of scripts that will work in tandem, and I got everything settled except this little AppleScript. It is essentially supposed to rename all the files in a given location at just the last two "words" in a folder (which are essentially the UID) and I used it several times in the past with success, but now that I have removed the guests 'choose folder' and instead of giving a specific path, I ran into the question after question. Here is my script up to now:
Tell application "Finder".
Repeat with this_folder in "Macintosh HD:Users:Server:Desktop:Test"
name of the value folder_name this_folder
Tell me to define the word - folder_name 2 contract
Tell me to define the word entity - folder_name 1
Set final_name to contract & "-" & entity
If not (file final_name) then
Set the name to this_folder to final_name
end if
end repeat
tell the end
say
I'm now see "unable to get the name of \"M\. ' number-1728 name of "M".
I thought it was a problem with the path at first, so I commented on the remaining elements of and had no problems from there. As I said, this script worked well when there was a prompt "choose a folder '; the only change that has been made is the reference to the file prompt. Thank you once again.
As a first step, you should have written:
Repeat by this_folder in the file "Macintosh HD:Users:Server:Desktop:Test"
Tags: Mac OS & System Software
Similar Questions
-
Problems with file extensions, Vista is slow and crashes
Salvation of problems with file extensions... My computer is very slow and is stuck...
Hello
Use the startup clean and other methods to try to determine the cause of and correct problems.
-----------------------------------------------------
What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
on this machine, including those you have uninstalled (they leave leftovers behind which can cause
strange problems).----------------------------------------------------
Follow these steps:
Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html==========================================
After the foregoing:
How to troubleshoot a problem by performing a clean boot in Windows Vista
http://support.Microsoft.com/kb/929135
How to troubleshoot performance issues in Windows Vista
http://support.Microsoft.com/kb/950685Optimize the performance of Microsoft Windows Vista
http://support.Microsoft.com/kb/959062
To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
reference (if you have a small box at the bottom left - show for all users, then check that).How to check and change Vista startup programs
http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.htmlA quick check to see that load method 2 is - using MSCONFIG then put a list of
those here.
--------------------------------------------------------------------Tools that should help you:
Process Explorer - free - find out which files, key of registry and other objects processes have opened.
What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
each process.
http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspxAutoruns - free - see what programs are configured to start automatically when you start your system
and you log in. Autoruns also shows you the full list of registry and file locations where applications can
Configure auto-start settings.
http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspxThere are many excellent free tools from Sysinternals
http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx-Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
a program that runs in your Windows startup.
http://www.NirSoft.NET/utils/what_run_in_startup.htmlThere are many excellent free tools to NirSoft
http://www.NirSoft.NET/utils/index.htmlWindow Watcher - free - do you know what is running on your computer? Maybe not. The window
Watcher says it all, reporting of any window created by running programs, if the window
is visible or not.
http://www.KarenWare.com/PowerTools/ptwinwatch.aspMany excellent free tools and an excellent newsletter at Karenware
http://www.KarenWare.com/===========================================
Vista and Windows 7 updated drivers love then here's how update the most important.
This is my generic how updates of appropriate driver:
This utility, it is easy see which versions are loaded:
-Free - DriverView utility displays the list of all device drivers currently loaded on your system.
For each driver in the list, additional useful information is displayed: load address of the driver,
Description, version, product name, company that created the driver and more.
http://www.NirSoft.NET/utils/DriverView.htmlFor drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
Control Panel - device - Graphics Manager - note the brand and complete model
your video card - double - tab of the driver - write version information. Now, click on update
Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
Uninstall - REBOOT it will refresh the driver stack.Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
with their own software and drivers and all other main drivers that you have.Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
BIOS, Chipset and software updates on the site of the manufacturer of the system here.)Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
each installation.Always check in the Device Manager - drivers tab to be sure the version you actually install
presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
in particular that) so to install a driver - reboot - check that it is installed and repeat as
necessary.Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
manually by model.Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmHow to install a device driver in Vista Device Manager
http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.htmlIf you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
Updates, that leaves about Windows updates but it will not install the drivers that will be generally
older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
get new manually if you wish.How to disable automatic driver Installation in Windows Vista - drivers
http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx===========================================
Refer to these discussions because many more excellent advice however don't forget to check your antivirus
programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
first.Problems with the overall speed of the system and performance
http://support.Microsoft.com/GP/slow_windows_performance/en-usPerformance and Maintenance Tips
http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125Explorer Windows stopped working
http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3Hope these helps.
-
I have a problem with file compression and then not be able to extract their share at a later date
original title: file compression
I am running Vista Home Premium on my laptop. I have problems with file compression and then not be able to extract their share at a later date. For example, I sent a file compressed to my instructor and she pointed out that she had a .zipx extension and the fact that she was unable to extract the files of ranking. Can someone help me with this problem?
Hello
1. do you have a third party compression/extraction of software installed on your machine?
2. do you get an error message when you try to extract the files?
3. is the relevant question for the particular file type?
4. don't you make changes to your computer before the problem?Follow the steps and check if they help.
Step 1:
Open zip files is to open the folder and drag the content to another folder.
See article:
Compress and uncompress files (zip files)Step 2:
If you have a third party software to Compress/decompress, I'd Uninstall it employs the way Windows compression and decompression of files/folders and see if they help.
-
Satellite M645 - problem with files from Ipod
I recently had two other notebooks die on me so why I got a brand new Toshiba Satellite M645.
I have two ipods with music on them from one of the computers.
When we follow the ways to transfer music on my new computer that I will meet different problems with each of them.The first problem is on my video Ipod.
After clicking on the hidden folders and etc when I find the music file, it shows the files for everything except music.
Here is the list of files, it gives meCalendards
contacts
garbage
NISAM
Notes
recycler
ground
USB 2.0 driver
zurimIf someone could help me with this, or maybe send me to another forum or page that might help me.
My other is an ipod touch.
And when going to the devices, it rises driver device USB mobile apple instead of an ipod just like my other.
When you click on it instead of display the files it just go to the properties and has two tabs, general and material.Once more if anyone knows how I might be able to get these on my new computer, I would be very grateful
That has nothing to do with Toshiba but with your Ipod.
On the other hand; I have an iPhone and the management of the files it s similar iPod.
All files need iTunes and using iTunes, you can control files and move between computer and ipodHowever, I recommend you to visit the forum for ipod problems
-
I was able to copy the 250 GB of files to film a box connected Western Digital Media, but when I try to copy files from a small portable USB key or on the network from a NAS, I get an icon with a cross through hand.
Any chance someone could let me know what it is and how to work around?
What USB device you are using and what laptop do you really?
You have this problem with different USB keys?
-
Tecra M5 Sysprep problem with file hdaudbus.sys
We have a syspreped image, that was created on a Toshiba Tecra M2.
Our current image works on the following model of machines: -.
Toshiba Portege 4000
Toshiba Portge 4010
Toshiba Portege M100
Toshiba Portege R100Toshiba Tecra M2
Toshiba Tecra S1Toshiba Satellite Pro 6000
Toshiba Satellite Pro 6100
----------------------------------------------------------------------------------We should now get the image while you work with the new Toshiba Tecra M5.
The driver that I have a problem with is HDAUDBUS.sys
When the machine starts first, and almost before it even tries to build some itsself, it says it cannot find the file 'hdaudbus.sys' and it seems that it is in the D: research, if you navigate to system32\drivers, then the driver is installed correctly, but I can't seem to automate this process.
I copied all required driver files and inf.
I filled the sysprep.inf (under the heading "OemPNPDriversPath") file with the driver and the correct path. It made no difference. I also 'DriversSigningPolicy' value 'IGNORE '.
I have sysprep using the image - pnp, mini installation then close it carefully.The question is:-
(A) I do something wrong, and is there a good way to get windows/sysprep automatically install this driver?
(B) I have a fix for the problem above, is:--
Put our sysprep would be the image on the Tecra M5, manually installed ALL of the correct drivers and then re-Sysprep image. The question is, is it OK to do this? (It seems to work)? Or is it not advisable to sysprep image, several times, on different model machines?Any advice would be appreciated!
Thank you
Hello Mark
Your ad is very interesting, but I don't really know which should help you. As you can see that he is user in the forum and you'll be lucky if anyone can tell you anything about your problem.
This file is Microsoft one and try to check in a Microsoft support page, if there is solution available.
In any case good luck!
-
Normal 0 false false false fr X-NONE X-NONE / * Style Definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 à 5.4pt 0 à 5.4pt ; mso-para-marge-top : 0 ; mso-para-marge-droit : 0 ; mso-para-marge-bas : 10.0pt ; mso-para-marge-left : 0 ; ligne-hauteur : 115 % ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ;}
I experienced a problem with an application. I think I've isolated the problem in the "Timed loop question - Source Code.zip" attached source code. A detailed list of my results are in the attached document "Timed loop detailed question - Results.docx.
Overview - it seems to be closely related to the IO files and the use of "Timed loops" on the OR cRIO-9012
1. If I activate the e/s in two loops, then two loops crash simultaneously
2. If I activate only the e/s in a loop, then only this loop crashes
3. If I activate the e/s in two loops and make a 'While' loop earrings, then it don't crash
4. If it is wrote nothing in the file I/o, then it don't crash
5. If the reference to the file is left open instead of opening and closing on each call, so it don't crash
6. If I try to run it on "My Computer", then it don't crash
7. If the IO is only activated in a loop and programmed to wait for one second between the file access, then it always crashes
In my real application, any given row is only writing (at least) once a minute, but I couldn't still my application to plant within a period of 24 hours by writing a single error of a single loop once per minute, with a low CPU use. It was the impulse to test the seventh point above.
It seems that the best solution was to open the reference to the file and let it open. I think it is a good practice in general and I'll do the update in the application. This should solve the problem, but it is very difficult to verify this due to the sporadic nature of the question. As such, I'd like to understand what was causing the problem so I can verify that it was fixed. So far, my attempts to create a single, coherent theory able to explain all aspects of this issue have failed.
I just wanted to know at all that there has been a request for corrective action (CAR #214156) has filed for this issue to be fixed in a future release. This seems to be a problem with the VxWorks operating system, we use in real time. We have additional cRIO chassis which have a Pharlap OS where it does not work. For now, you can search for this CAR ID notes to see if this problem has been resolved for publication in the future.
Currently, there are two solutions, we have identified for this problem:
1. open the file before the loop and close it after. (recommended)
2 perform file i/o in a normal loop and transfer data to a queue. -
Hello
I have a problem with the jad file.
I get this error when trying to install the key file:
manifest error or application descriptor not valid
Here's the JAD file:
MIDlet-Name: SinexiaMobile MIDlet-Version: 7.8 MIDlet-Vendor: Sinexia MIDlet-Description: SinexiaMobile MIDlet-Jar-Size: 0 RIM-COD-URL-1: SinexiaMobile.cod RIM-COD-Size-1: 81320
Mounting of cod with alx file via BB Desktop Manager job very well, but I need solution to install via a web browser.
Thank you
Hello
Problem solved changing the server mime type:
Text/VND. Sun.J2ME.app - Descriptor-> jad file
application/vnd. RIM. COD-> cod file
Thank you
-
Problem with files first download as contributor
Hello.
I'm about to start working with Fotolia and Adobe Stock. Have registered today and I tried to download some vectors. I did the zip file with eps and jpeg, because the instructions to me and tried to download it. And you know what? Adobe Stock rejected him because "he is not a valid file type. What is a problem?
It when get this kind of problem is usually due to a problem with the preview jpeg file. It is important that meet you the specifications of file and the jpeg preview is at least 5000 x 3000 pixels. You can find more info on vector specifications of file on this link: download and manage your content
If your file meets these requirements you know, please let me know and I will dig deeper into that for you.
Kind regards
Mat Hayward
-
Problem with file download in folio Builder
We have problems with downloading files in the folio and generator with folios of the DPS Dashboard update. In both cases, the process is very slow and then is interrupted before the end. could you please tell? Thank you.
https://status.publish.Adobe.com/?p=955
Service was restored after the team ops spilled to the cluster healthy. PAHO will continue to monitor the system.
-
In Windows 8, I am unable to create a new file with File Explorer. All that happens is the little circle rises, and finally, it will switch to "not responding". This happens directly in the Explorer file and in Word and Excel when I try to use Save as. This s a new installation and I had only a week. Nothing about elements default ordinary has been loaded.
Hello
Please, try the command SFC/scannow in the administration command prompt and see if that helps.Hope this helps, good luck :) -
Problems with files of Point high vector (anchors)
anyone else having major performance issues while working in files with a large NUMBER of vector points / anchor? I have a very fast system (Intel i7 5960 x 8core running up to 4.7 Ghz w / Turbo Boost w / 32 GB of Corsair Memory & running on dual SSD pro Samsung 850 s.) Just like a Nvidea GTX card 980) plus all the great execution files, but get a file with a lot of anchor points and BAM... slows down to a crawl! Very frustrating!
Thanks for any idea to help boost performance or work with files of upper anchor point.
Brett
Brett,
When you work with the file that has a lot of vector points. Try to work in mode plotted, if you can and if it works for you. Don't forget with all complex vectors, the screen must redraw which takes the application memory when you move or update the object/drawing. If you try to resize the chart at a size smaller than work with it and then expand to a normal size when you are ready for the final version of the file.
It can help.
Thank you
Scott
-
Bridge CC on Win7 64 problem with batch renaming.
Subscribed only to the Cloud environment and download Bridge CC. Set up and saved a batch rename model ok, but the names of the selected files do not change in the same folder. The folder is located on a second disk, but I doubt that this would have caused a problem. I wonder if bridge CC must be connected in the cloud using it and if browser script security restrictions would cause a problem? No matter which illuminate my path?
This anomaly occurred when a system has been implemented with two physical hard drives. Each was bootable, but it will take a tour in THE system BIOS before startup, which drive to boot from the value. Regardless of the car was chosen would then be called by the BIOS of the c:, the other being the D drive. So when Bridge CS3 disk 1 started as the C: drive it should have been not aware of the other side of the bridge on the D: drive now. If disk 2 with bridge CC has been started, it would then become the C: drive, making the drive 1 drive D:. Once more drive 2 bridge CC is not aware of the version of D: drive on disk 1.
The original problem may have been caused during the installation of the bridge on the second disc, which could search all drives during the installation you are looking for install previous, not only the startup disk. To avoid this the second disc will need to be taken offline (dismounted) while the latest version of the bridge has been installed on the remaining disk. It's like having two drives C: containing all required files, but only have one mounted at the same time. However, changing the code of the road so there isn't that one C: drive can both be used together with the only designated as C: initializing. The other would just look like a data reader.
This configuration has been a trial in the production of a fast recovery system in a hostile environment. Because this configuration is no longer in use, I will finish this original question because it is no longer relevant.
-
T420 Bluetooth problems with file transfer, only restart fix
Hello everyone I have the most current drivers and BIOS by system update. I lit BT with FN + F5 and began to transfer some photos from my phone to the computer. After the second or third file the phone indicates that the transfer failed and transfer more files. Can I transfer pictures from the phone to my T400.
Then, I got another phone with BT to see if it might be at the computer. This phone has not been associated with my machine, I went in parameter BT and turned on "Allow Bluetooth devices to find this computer". Windows introduced an error message indicating that the settings have not changed and the BT unit is maybe unplugged.
According to FN + F5, the BT is. I tried to switch off the BT by FN + F5 and then on aging after a short wait. I got the same error. I tried power cycling the hardware network switch. Same mistake.
Restarting the computer is a temporary solution, but I can only transfer files from 2-3 before that it happen. I hope there is a solution to this problem that does not require me to buy a cable to transfer files between my phone and computer.
About a week after I posted it there new drivers and BIOS update available. I installed this and everything seems to work fine now.
-
BlackBerry Curve 9300 encryption problems with files *.rem smartphone
Hi all
I encrypted my phone by using the password. Also encrypted Media card with included media files.
Now I want to save the photos on my media card, but all are in *. jpg.rem extension. I tried to disable the encryption but the *. jpg.rem remains.
My camera works fine and I have my password (thank God for the tht).
All the post I saw up to present r guy who changed phones or don't remember password.
I don't have the option of emailing photos for me, as the files I need total 167 MB.
I'm on BB Curve 9930
Please help guys...
Thnx
OK it got...
The following things were made by me:
(1) options-> memory-> Compression disabled.
(2) options-> memory-> Support of = OFF mass storage Mode
(3) options-> memory-> security--> encryption--> Media Care active =
(4) options-> memory-> security--> encryption--> media files include = NO
I left the encryption ON. Just like before.
Then the phone connected to the laptop. Password on the phone and in the BBDesktop software entry.
Presto...
IM can transfer all the unenctrypted of pictures and videos with *.rem to my HARD drive.
Hope this helps other ppl have this problem.
Maybe you are looking for
-
People cannot hear me when I call the iPhone 6
Hi all When I call people from my iPhone 6 they heard me not talk at all. If I put the phone on speaker, they can hear me and I can record and playback voice memos with no problems at all. I tried both a hard and soft reset which none has solved the
-
Managed to fall through the configuration for this new router and everything works well. It is perhaps a silly question, but when I look at the available wireless connections on my PC I have several. There is a Netgear65, Netgear65 - 5G, & Netgear65
-
How to create bootable CDs for Tecra M7?
Hello I just got my Tecra M7 and want to split the drive into 2 partitions. I found several tools to do this without losing the data on the existing partition, but they all seem to rely on the use of a boot disk. I don't have a floppy drive, so I tri
-
For the fiscal year non-stop account Tracker
In the last three days, the exercise tracker keeps track of every move as exercise, then the intermediate ring is enveloping like 4 times. Here's the story so far, Friday 30/67 Saturday 574/30 Sunday 317/30 (it is currently 14:10) Looking at the hist
-
Anyone having problems with wifi? Low connection?
Recently bought a new Sony Vaio Fit 8 gb laptop for College. The love of my laptop inside and outside except directly from the box of my wifi was very fragile. I'll be in a room with 5 bars of wifi, then I go into the next room and I can't go to the