Set the clipboard wont work
This code works by itself, buy when it is in a script that is a drag and drop, the clipboard never gets any data send to it. Why does it work by itself but NOT when it is in a drag and drop script.
set container_folder to "Macintosh HD:Users:Shawn:Desktop:700 Club Hoy"
tell application "Finder"
set y to name of item 1 of folder container_folder
set basename to text items 1 thru -5 of y
set the clipboard to basename as string
end tell
And, here's another thing.
I've missed the misuse of 'text items' in your original code.
Use 'text 1 thru -5 of y' instead of 'text items of 1 thru -5 of y'.
Corrected snippets follow.
Cheers,
H
--CODE 1 (Corrected)
tell application "Finder"
set y to name of item 1 of folder container_folder
set basename to text 1 thru -5 of y -- # corrected
activate -- # required if Finder is not frontmost
set the clipboard to basename
end tell
--END OF CODE 1
--CODE 2 (Corrected)
tell application "Finder"
set y to name of item 1 of folder container_folder
set basename to text 1 thru -5 of y -- # corrected
end tell
tell me to activate -- # optional if 'me' (= droplet) is already frontmost.
set the clipboard to basename
--END OF CODE 2
Similar Messages
-
My ipod touch (3rd gen) screen doesnt work... The right side of the screen wont work i cant unlock it or do anything on it.. this all happened after i left it in my car after a cold night... the problem didnt start at first it started about a day later.. i have no clue what do.... i dont knoow the operating system i think its 4.3.3 but i dont remember as its been a while since i last updated it... if anyone can help me let me know please
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings if you can
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
- Make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
I have downloaded updates for microsoft office and now the internet wont work - any ideas?
I have downloaded updates for microsoft office and now the internet wont work - any ideas?
If you want to simply do a 'fresh' install (versus wiping out all of your data and doing a 'clean' install) simply boot to your Recovery partition (hold down the Command and R keys whilst booting) and when the Recovery screen appears, elect to freshly install OS X.
Don't know that will solve your problem, though... did you do the 'automatic' update or download the update as a disk image (.dmg)? I wouldn't think that would be causing your problems...
Clinton -
Im connected to wifi but the internet wont work?
im connected to wifi but the internet wont work how do i make it work
Go to settings, then wifi. There, you can choose a wifi router and if needed, enter the password. You haven't provided any details in your post. Are you trying to connect to a home network? A commercial network?
-
The internet wont work when I use My wrt300n v 1.1
I can connect to the router but the internet wont work but just with the modem it works
Who is your ISP....?
What settings you have done on the router....?
If your Internet Service Provider is Cable follow this link to configure the router.
If your Internet Service Provider is DSL follow this link to configure the router. -
The control click and external mouse right click no longer works when copying and pasting album art within itunes. Ex. Hit get info for one song to paste to the rest, copying the artwork wont work when it used to.
Hello there, Teworsham90.
The following Knowledge Base article reviews the process of adding artwork to content in your iTunes Library:
iTunes: How to add artwork to songs and videos in your library
http://support.apple.com/kb/HT1409
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro D. -
My notebook cord recently short fused the office. I have replaced the cord and the computer seems to working fine, except the internet wont work. It states it is connected in the network preferences. can any one help?
Hi LanaJay84,
If you are having issues connecting to the Internet from your Mac, you may find the following articles helpful:
Wi-Fi: How to troubleshoot Wi-Fi connectivity
http://support.apple.com/kb/HT4628
Mac OS X: Troubleshooting a cable modem, DSL, or LAN Internet connection
http://support.apple.com/kb/ts1317
Regards,
- Brenden -
I´ve downloaded PS from CC, but the app wont work? Can re-download it?
Hello,
I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool. Sometimes - for whatever reasons - CC (together with the Apps) doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
I Quote: ... helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html and follow the prescribed sequence of operations
If necessary and for further questions and if "open" please use chat, I had the best experiences.
Hans-Günter -
The backlight wont work on my iphone 3gs?
the backlight wont work on my iphone 3gs?
The only backlight issues I've heard of were from the LCD having gone bad. They're easy to replace, and inexpensive (around 20USD) on eBay including the tools needed to do the job. Alternativly, you can have it done at apple for ~150USD.
-
Help my ipod still has the screen lock on and the combo wont work
I was just testing the screen lock thing to see if it would work so i set it to my birthday and then i test it out and it wont work my combo i tired every combo so it said if u forget combo plugg it into ur computer . i plugged it in and now what? i unplugged it and its still locked . wat should i do ?
Plugging the iPod in to the computer only unlocks it until the next time you opt to lock the screen. It does not get rid of the old code that you no longer know.
The only way to get rid of the older code and be able to set a new one if desired is to restore the iPod.
To restore, connect the iPod to the computer, open the iPod updater (Start>All Programs>iPod>iPod Updater) and click restore.
Restoring will delete all the files off of your Nano, and reset all settings, including the screen lock. It will not however, change anything in your iTunes library, so after completion, simply update your iPod as normal to get your songs back on.
Then, you are free to set a new screen lock. Hopefully this time it will be one you remember. -
anyone can help me about my prblem on my iphone 4,.my phone wont receive and make calls..i already did the reset network setting,and off the 3G ..but still wont work..help pls..thks
try easy first. if pre paid make sure you have not ran out of date,might need top up. if on contract check with your provider to see if they have stopped your account, if all fails ring apple
-
Refresh rate set wrong, mini wont work with TV anymore
I have a Mac mini hooked to my conventional TV. I tried setting the refresh rate to 58Hz. I wanted to see if it made the picture any better. The image lost all vertical sync and the image rolls very fast. I thought maybe a confirm dialog box would switch it back to 60Hz after a set time. It didn't
I tried putting it to sleep an waking it. I pulled the plug and restarted it. I reset the PRAM. The mini always switches to the bad refresh rate after start up.
I hooked the mini up to my 23" Cinema Display. Then I can use it fine. However, there was no way to channge the TV settings. I hooked it back up to the TV and it still wouldn't work.
So now I have a mac mini that wont work with a TV. The only thing I want to use it with. The only thing I can think is a last resort. To erase the hard drive and re install Mac OSX from scratch.
Is there anything I can do short of reformating the thing? There really should be a timed out dialog box to confirm the setting, al la (dare I say) Windows XP.This is a real Catch-22 that has caught a bunch of us. If Apple wants lots of naive users to hook these up to their TVs as media centers, they need to have the kind of recovery mechanism you suggest. In the meantime, when I had the same problem and posted, there were lots of useful suggestions in this thread:
http://discussions.apple.com/message.jspa?messageID=1913178#1913178 -
HT1338 i have a new mac air . the usb wont work and i cant charge my i phone with it
please help me out . i have a new mac air . when i conect my cable to usb socket wont work . it wont charge my i phone either . whats wrong
I'm sure you've done everything like rebooting or testing other usb devices...have you tried to create a new user account and see if you get anything that way?, I would imagine you'd have to return the machine for an exchange at the Apple store.
-
The keyboard and the touchpad wont work GT683 284RU
Dammit i bought Msi GT683 284RU laptop and i connect a usb mouse ..after that the touchpad stop wonrking and before it everything work probebly
After that my keyboard stop working too .. but when i go to the bios the keyboard works fine
and when i turn on the windows i can write 1 letter or 1 number and after that the keyboard stop working ..
i try to format my windows and install one new.. and its still not working : |The Sentelic Touchpad has an option in setting to disable itself when mouse is plugged in. Try to deactivate that option.
-
Setting the Time not Working :\
I've been trying to set the correct time on my machine for a while now, but Arch still keeps saying that I'm in CET. I've gone into /etc/rc.conf and edited the correct strings. Currently, I've got it set to UTC, and the timezone is America/Los_Angeles. I've tried UTC and US/Pacific, UTC and US/Pacific-New, as well as localtime. Any ideas on what is keeping it from correctly setting the time?
8 hours is the difference between UTC and PST. If you have the BIOS clock set to your local time then the entries in /etc/rc.conf ought to be:
HARDWARECLOCK="localtime"
TIMEZONE="America/Los_Angeles"
Only set HARDWARECLOCK to UTC if the BIOS clock is set to UTC.
Maybe you are looking for
-
Am trying to update iPhone 4G to iOS 5 = need to install itunes 10.5 first and unable to do so...
-
Characters in names and aliases
In the website for Paetzold recorders there is an interesting bug. They have a setup which sweeps the text from a page onto a sheet Paetzold letterhead when you click on an Adobe icon. Unfortunately the letterhead uses a different text encoding and y
-
Bug With Quoted Table Names?
I think I've encountered a bug in Oracle 9.2.0.1.0. If I create table with its name in quotes, I can't access it again unless I also use the name in quotes. But, in DBA_OBJECTS the table's name shows up without quotes. For example: CREATE TABLE "aval
-
Gibt es eine App mit der man verschiedene Benutzer-Profile anlegen kann?
Ich suche eine App (bei Android gibt's so was!) mit der man z.B. abhängig von einem Kalender-Eintrag oder vom Ort unterschiedliche Telefon-Einstellungen (z.B.: Klingeltöne, -lautstärke o.ä.) einstellen kann!
-
Error message when trying to save
When I try and save a file in dreamweaver CS4 I get the error message: While executing onLoad in MF Auto Title_beforeSave.htm, the following Javascript error(s) occured: In file " MF Auto Title_beforeSave": beforeSave is not defined I then click on t