Is this possible in AppleScript and if so how ?
I am trying to make an app that opens AppleScript and types in things. I then want the AppleScript that the other Applescript wrote to save as an application, and rename it. Is this possible and if so, can you give me an example?
If I'm following what you want, the applescript editor is fully scriptable. In fact, there are a bunch of applescript samples in /Library/Scripts/Script Editor Scripts/ that show you how to use applescript to write and compile applescript code into a new window. Just for a quick-and-dumb example:
set the target_string to "X-X-X"
set the script_text to "display dialog \"" & target_string & "\" buttons {\"OK\"} default button 1" & return
set outputPath to POSIX path of (path to desktop folder from user domain) & "test.app"
tell application "AppleScript Editor"
activate
set newDoc to make new document
tell newDoc
set its text to script_text
try
check syntax
compile
end try
save in outputPath as "com.apple.application"
end tell
end tell
Similar Messages
-
Is this possible to do and if so how?
I use itunes on my laptop. At home, it is connected to a Network Area Storage system (NAS) and I have about 400 gigs of music.
When I travel, I'd like to keep about 100 gigs of music loaded directly on the laptop as a subset of the songs on the NAS.
Is it possible to make iTunes switch between two completely different music libraries? Can I just copy the ITL libraries back and forth from different subdirectories?
I don't want to split the libraries because the NAS is backed up regularly.
ThanksFollow the instructions in this article.
(23724) -
I want to put several photos on one sheet. In other words, I want to open a blank document and move several photos on to it. Is it possible to do this? If so, how?
Thanks, Leslielesliew13734700 wrote:
OK, another question. I opened a new blank file and the picture I want to move is in the Photo Bin. That image is 2 in. X 3 in. But, when I move it onto the blank image, which is 8X10, it fills up the entire space. I can't figure out how to put it in the new image in the correct size relationship.
Open the picture file, go to Image>resize>image size. Read what the resolution is in px/in, write it down, do nothing else here at this time
Go to File>new>blank file, Enter the dimensions , resolution the same value that you wrote down in step #1, background color to suit, ok it.
Go back to the picture file, go to Select>all, go to Edit>copy to put it on the clipboard
Go back to the blank file, go to Edit>paste
Get the move tool out of the toolbox, position the picture, and resize with the corner handles of the bounding box, if necessary..
Note: For printing, the rule of thumb is that the resolution be in the 240-300px/in range, although I have had good results below this value. For web work, 72 px/in is ok. -
I have a video I 'm editing and some of the shot taken (on the left and right) I would like to remove. Is this possible to do ? If so, how?
If you mean there are parts of the picture at the sides you want to remove, you have at least 2 choices.
You can mask the edges of the frame or enlarge it so that the left and right sides are outside the picture area.
The latter suggestion will reduce the quality of the video and you will also lose an equal amount from the topand bottom, though you could slide the image up or down. -
I have been sent a .pages document and would like to extract the photos included in the document as jpegs (need to edit on photoshop and put back in), is this possible? can't figure out how to do it.
I'm going to answer my own question:
Easy steps
Locate the document in the Finder.
Control/Right-Click on its icon.
Select Show Package Contents
All images and embedded objects appear in ‘Data’ folder
From this blog
http://vernonchan.com/2013/10/how-to-extract-images-from-apple-pages-5-0-documen t/ -
I received a new IMac for Christmas and set up a new .me account and I'm using this on my IMac and IPhone4S. how do I transfer my music from my old Windows iTunes account to my new Mac account?
You can red this article about transfering your tunes - http://www.myfirstmac.com/index.php/mac/articles/how-do-i-move-my-itunes-library -from-pc-to-mac-and-keep-my-settings-intact
MJ -
I am based in Russia, and I use a Russian cred card number. Hence my apple store page is in Russian language (which i dont speak). Can I change this into English language and if yes, how?
The only way I know is that you need a physical address and credit card of an English speaking country.
-
I cannot update my iPad and notes it cannot be updated due to unknown error (6). I have not yet updated my Macbook to Yosemite (which I do not intend to do so yet) so would this be the problem and if so, how can I update the iPad?
Thanks,
glhikerHi glhiker,
I understand that you may be having some issues with your ability to update your iPad. Here is an article that references your error code and can help you take some steps to resolve it:
Resolve iOS update and restore errors - Apple Support
http://support.apple.com/en-us/TS3694
Check your security software
Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
Thanks for coming to the Apple Support Communities!
Regards,
Braden -
I have an iPad one and my headphone jack is stuck in my iPad can this get rep arid and if so how
i have an iPad one and my headphone jack is stuck in my iPad can this get rep arid and if so how
Auditman2012 wrote:
Why won't my PC show the calendars that are showing on my Ipad and Iphone when I snyc to ICloud?
Did you look in the iCloud account on Outlook? -
Is this possible in AppleScript?
I'm working on a project that will require a new file to be uploaded to a directory on a server every day. I've written a nice little script that launches YummyFTP and overwrites the designated folder on the server with the contents of a nominated folder called "Upload" on my desktop containing 2 files (one.mov and one.txt). So far so good and it works fine.
Because I then have to change the contents of the folder daily, I have a "Pending" folder with 365 files that are named with a descriptive title eg. holiday.mov/holiday.txt, golf.mov/golf.txt etc.) The path is yada..yada../desktop/Upload/Pending
Is there a way to write a script that will automatically take the top 2 items from the "Pending" folder, rename them and move them to the nominated folder? Or maybe overwrite them based on the creation date. I figure that if they are identically named, they will always be adjacent.
Any help or tips appreciated.There's actually no imperative whatsoever to pre-determine the order. In fact, it might be a bit more fun if no-one knows what today's .mov will be
Oh, then that's easy. Pick a file at random
Here's a starting script - define the source and destination directories at the top of the script. It then picks a file at random, strips off that file's extension and locates all other files in the directory that match that base name (e.g. if it finds 'snowboarding.txt' as the random file, it then strips '.txt' and finds all 'snowboarding*' files.
It then duplicates those files to the destination directory. I know your original post calls for it to rename the files, but I'm not sure what you want/expect to happen there. I'm sure its do-able, just need to know what you want.
set sourceDir to "HD:path:to:sourcefiles" -- path to source files
set destDir to "HD:path:to:uploadsdir" -- path to watched uploads folder
tell application "Finder"
set theFile to (some file of folder sourceDir)
set basename to my stripExtn(theFile)
set files2Copy to every file of sourceDir whose name begins with basename
duplicate files2Copy to folder destDir
end tell
on stripExtn(filename)
set {n, e} to {name, name extension} of filename
set b to characters 1 through -(2 + (length of e)) of n as text
return b
end stripExtn -
When I run Netflix or Hulu in my PS3, I can enable automatic episode play, which is great when I am cooking or cleaning, and my 4 year old is watching a show. However, upstairs I run Netflix and Hulu via the Apple TV. Hulu allows for automatic episode play but Netflix doesn't. Is this something I can control via the ATV, or is this an issue with Netflix? Any info will be apreciated!
Welcome to the Apple Community Sofia.
I don't believe that's possible on the Apple TV.
If you have any suggestions that you think might enhance the Apple TV you can send Apple your feedback here -
I'm having a problem upgrading my computer, i wish to download snow lepard and lion but every link on the apple website as been so unhelpfull that i have no idea how to get it or where to downlaod it. is there anywhere i can do this.... the only referances i have had have been "click on the apple and press software update" i have no updates and my computer will no longer do anything without an update......
where can i get snow lepard and lion....Backup first
It is always best to have a full bootable backup before you upgrade. If you fail to do this you will be unable to return to this OS if you decide you don't like the new OS. Also there is a slight chance that an install could lose everything on the Mac. The backup must be to an external hard disk. Preferably use Carbon Copy Cloner to make a bootable backup of the whole disk.
Erase before the install
Once you have a bootable backup on an external disk it is best to erase the internal disk with the new installer DVD before you install.
During the install
Preferably do not import any data or preferences from earlier OSs during the install process as this can reintroduce bugs.
OS numbers and names
OS X 10.4.x - Tiger
OS X 10.5.x - Leopard
OS X 10.6.x - Snow Leopard
OS X 10.7.x - Lion
OS X 10.8.x - Mountain Lion
More about Macs
The Apple History site has specifications for every Mac ever produced: http://www.apple-history.com/
Upgrade to Leopard
Those wishing to upgrade to Leopard should be aware that install disks can be expensive unless you contact Apple. Details: http://lowendmac.com/deals/best-os-x-leopard-prices.html Standard Leopard installers impose several hardware limitations including speed and RAM size but all these restrictions can be overcome. Google for details. Leopard works well at 500 MHz with 1 GB of RAM and many happy users have less than this.
Upgrade beyond Leopard
OSs beyond OS X 10.5.8 require an Intel processor. If in doubt check this: Click the apple at the top left of your screen and select 'About this Mac'. This will give you your OS number. Then click 'More Info' to see which processor you have. If it says PowerPC you cannot upgrade to Snow Leopard and above. If you have an Intel Mac it is well worth upgrading to Snow Leopard now and then considering other options after that. You can buy Snow Leopard here: http://store.apple.com/us/product/MC573Z/A
Upgrade beyond Snow Leopard
Information about upgrading Snow Leopard to Lion or Mountain Lion: http://store.apple.com/us/product/MD256Z/A
Important
Check that your Mac complies with any requirements. If you are not in the US you should use the Change Country link at the bottom of Apple pages. -
Let's say I delete the parameter on a functioning mailserver and I do "imsimta refresh". What happens to the directories and their content? Do they get processed? Do the 20 subdirectories get deleted automatically?
Problem is I don't have a testmailserver.Setting more subdirs on a channel is often useful. The exact number of subdirs to use is dependent on your site and what the typical amount of queued mail will be.
The MTA has to scan the queue directories to find out what messages are queued - and just scanning a directory with more than 1000 files will not perform well. So you should always set the "subdirs" parameter so that you will never have more than 1000 files in each subdirectory.
Busy large ISP's will typically set this to 100 for many queues, as they may have tens of thousands of messages queued at any one time. -
help i just updated my i phone 4 with ios7.1 and now its telling me to connect to itunes!! not sure how to do that
Do exactly what it suggests, connect the device to a computer running iTunes, then restore.
-
Sorting elements by category - is this possible in Muse?
I have a page that may eventually have 100+ groups of 3 separate elements, which all are connected with a musical artist. I would like the user to be able to sort through the list based on categories I create.
Here is the current site - http://www.vfepedals.com/support-an-artist.html
Here's an example of how another website does something very similar: http://www.jhspedals.com/
Ideally, it would sort through multiple elements, and each set would be contained in a fixed rectangular box (so I'm basically sort empty boxes that multiple elements could go in, much like LIghtbox).
There are many places on my website that this could be employed to make the site look better and be easy-to-navigate.
Is this possible in Muse? If so, how? What widgets do I need? I'm willing to invest some money if that's what it takes, but any solution will have to be something I can edit in Muse myself.Hi
You can try to use toolitp where insert the categories in trigger and the items in container , so when user will click or hover over trigger it would show up the category clicked.
The exact behavior that you have mentioned cannot be achieved without using custom code implementation, but with Muse widget you can achieve a similar effect.
Additionally you can checkout few interesting widgets in library to use :
http://muse.adobe.com/exchange
Thanks,
Sanjit
Maybe you are looking for
-
Copy a purchasing inforecord from one supplier to another.
When a supplier changes his TVA-number, or when there is a take-over by another company, the supplier number changes,. We want to transfer all inforecords from the old supplier to the new supplier, because all info remains the same. The Tcode MEMASS
-
Copying Bootable Drive C: to Second Hard drive
In Win98se, I could take "Partition Magic 8" and simply copy c: to the next drive, shut down, unplug the original drive, and set the jumper on the new (bigger) drive to Master, and I'd have a bootable bigger drive. This is not working on XP. I did th
-
Folio Builder panel missing in InDesign CC
I have installed InDesign via Creative Cloud, and when I go to the folio builder, no dialog box appears. I was looking for the presence of the DPSGraphics plug-in "digital publishing" plug-in and it also cannot be located. Do i have to run the DPS up
-
How do I change my lost 4 diget mini code to get in?
I have not used my mini pad lately and forgot 4 diget code to get in What do I do?
-
hi! can anyone help me out? i used this program like a few weeks ago and i had no problem with it back then. i had all the instruments. but now i don't have beats, piano, synths, etc. anymore and i have no idea what the **** happened!! can anybody he